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

      Note, this is not a dupe of https://issues.jenkins-ci.org/browse/JENKINS-16998 which affects downstreamParameterized.

      I believe this is actually just a mistake in the documentation (wiki).

      The docs mention downstream() accepting 'ALWAYS' as a valid value for the second argument, but this is not accepted by the job-dsl implementation and is not an option provided in the jenkins UI (radio button texts are: "Trigger only if build succeeds", "Trigger even if the build is unstable", "Trigger even if the build fails").

      Docs:
      https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-reference#downstream

      DSL Code:
      https://github.com/jenkinsci/job-dsl-plugin/blob/master/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/PublisherContextHelper.groovy#L476

      UI screenshot is attached.

          [JENKINS-20687] downstream() does not support 'ALWAYS'

          Agreed, I fixed the docs.

          Daniel Spilker added a comment - Agreed, I fixed the docs.

          might want to change the text to "can be one of three values" (instead of "four"). otherwise looks good. thanks!

          Mike Dougherty added a comment - might want to change the text to "can be one of three values" (instead of "four"). otherwise looks good. thanks!

          Arg, fixed it, too fast. BTW, you should be able to edit the wiki, so feel free to fix stuff.

          Daniel Spilker added a comment - Arg, fixed it, too fast. BTW, you should be able to edit the wiki, so feel free to fix stuff.

          oh, great. i wasn't aware i had edit permissions. thanks for the info

          Mike Dougherty added a comment - oh, great. i wasn't aware i had edit permissions. thanks for the info

            daspilker Daniel Spilker
            mikedougherty Mike Dougherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: