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

downstreamParameterized step does not block on completion of downstream job

XMLWordPrintable

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

      When using the 'downstreamParameterized()' step, creating a 'blockingThresholds' map does not cause the downstream job to wait for completion.

          steps {
            downstreamParameterized {
              trigger('vxworks-kernel-build', 'SUCCESS', false,
                      ['unstable': 'UNSTABLE']) {
      

      This creates the following relevant XML for the generated job:

      <block>
       <unstableThreshold>
        <name>UNSTABLE</name>
        <ordinal>1</ordinal>
        <color>YELLOW</color>
       </unstableThreshold>
      </block>
      

      The block should include

      <completeBuild>true</completeBuild>

      or else the upstream job will not wait for completion of the downstream job.

            daspilker Daniel Spilker
            spikerjenk2 Jordan Spiker
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: