A pipeline author will occasionally need to set criteria on which a stage is "skipped" or applied.

      This uses the "when" construct: (full docs here: https://jenkins.io/doc/book/pipeline/syntax/ search for "when" if you are curious).

      In Scope:

      • User can choose a stage an optionally provide a condition underwhich it will run (called a "when")
      • This may be one of:
      • * branch name specified (string)
      • * environment variable name and its value (when that variable = value, it will be allowed to run)
      • * a text box that allows an arbitrary expression to be entered

          [JENKINS-41969] Support "when" in stage level config

          Michael Neale created issue -
          Michael Neale made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Michael Neale made changes -
          Epic Link New: JENKINS-35755 [ 171716 ]
          James Dumay made changes -
          Epic Link Original: JENKINS-35755 [ 171716 ] New: JENKINS-36291 [ 172300 ]
          James Dumay made changes -
          Sprint New: post-release [ 181 ]
          James Dumay made changes -
          Rank New: Ranked higher
          James Dumay made changes -
          Sprint Original: post-release [ 181 ] New: up next [ 171 ]
          James Dumay made changes -
          Rank New: Ranked lower
          James Dumay made changes -
          Sprint Original: up next [ 171 ]
          James Dumay made changes -
          Sprint New: 1.1 [ 251 ]

            brody Brody Maclean
            michaelneale Michael Neale
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: