Skip to content

Commit

Permalink
[JENKINS-43104] Clarify that when->branch only works on multibranch
Browse files Browse the repository at this point in the history
  • Loading branch information
abayer committed Jul 6, 2017
1 parent 2822a19 commit 37472ae
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 37472ae

Please sign in to comment.