Skip to content

Commit

Permalink
Merge pull request #982 from abayer/when-branch-only-for-multibranch
Browse files Browse the repository at this point in the history
[JENKINS-43104] Clarify that when->branch only works on multibranch
  • Loading branch information
R. Tyler Croy committed Jul 6, 2017
2 parents 2822a19 + 37472ae commit 69263ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/doc/book/pipeline/syntax.adoc
Expand Up @@ -728,7 +728,8 @@ Nesting conditions may be nested to any arbitrary depth.
===== Built-in Conditions

branch:: Execute the stage when the branch being built matches the branch
pattern given, for example: `when { branch 'master' }`
pattern given, for example: `when { branch 'master' }`. Note that this only works on
a multibranch Pipeline.

environment:: Execute the stage when the specified environment variable is set
to the given value, for example: `when { environment name: 'DEPLOY_TO', value: 'production' }`
Expand Down

0 comments on commit 69263ee

Please sign in to comment.