Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29629

Build Blocker support does not work as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None

      I have a DSL Job that invoke two different DSL scripts, creating and queuing two different jobs to run. The first job (we'll call it Job1) must complete before the second job (we'll call it Job2) begins. To do this, I have chosen to use the Build Blocker plugin , which the Job DSL Plugin supposedly supports. However, when I add the "blockOn('Job1')" line to the second DSL script, it doesn't actually block the second job from running even though the first one is still running.

      The image attached is the configuration of the second job that gets created. You can see the "blockOn()" line in the DSL script worked, however it needs further configuration abilities. By default, "disable queue checking" is selected, which basically ignores the blocking rules altogether, making the Build Blocker plugin useless through a DSL script.

            daspilker Daniel Spilker
            thetaiter Ian Tait
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: