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

Plugin does no blocking when job is generated with job DSL groovy script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • build-blocker-plugin
    • None
    • Windows 7 64 bit
      Jenkins ver. 1.655
      Build Blocker Plugin 1.7.3
      Job DSL 1.44

      To reproduce the error, use the attached main.groovy script in a seed job with the Job DSL process to generate two jobs (example1, example2). Both jobs could be started on a windows environment and produce a 10 sec. sleep.

      example2 is configured to be blocked when example1 is running. But both jobs can run in parallel as one can see in the attached BuildExecutorStatus.PNG

      The config.xml of example2 has a entry for the plugin:
      ...
      <properties>
      <hudson.plugins.buildblocker.BuildBlockerProperty>
      <useBuildBlocker>true</useBuildBlocker>
      <blockingJobs>example1</blockingJobs>
      <blockLevel>GLOBAL</blockLevel>
      <scanQueueFor>DISABLED</scanQueueFor>
      </hudson.plugins.buildblocker.BuildBlockerProperty>
      </properties>
      ...

      But the graphical view of example2 shows no selection for "Block build if certain jobs are running as shown in the attached example2_config.PNG

            nify Nico Falk
            nify Nico Falk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: