-
Bug
-
Resolution: Fixed
-
Minor
-
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