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

Flip Build Blocker Upstream/Downstream Values

XMLWordPrintable

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

      The values in TopLevelHelper.groovy look backwards to me. I'll submit a PR.

          /**
           * Configures the job to block when upstream projects are building.
           *
           * @return
           */
          def blockOnUpstreamProjects() {
              execute {
                  it / blockBuildWhenDownstreamBuilding(true)
              }
          }
      
          /**
           * Configures the job to block when downstream projects are building.
           * @return
           */
          def blockOnDownstreamProjects() {
              execute {
                  it / blockBuildWhenUpstreamBuilding(true)
              }
          }
      

      Ref. https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-reference#block-on-upstreamdownstream-projects

            jamlevi James Levinson
            jamlevi James Levinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: