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

Support "when" in stage level config

XMLWordPrintable

      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

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

              Created:
              Updated: