Skip to content
Browse files
[JENKINS-49226] Documentation for new equals condition
  • Loading branch information
abayer committed Feb 27, 2018
1 parent 2669cd8 commit 60f9e48f7c4178711cc6f9e16628c1391e8a69ab
Showing with 3 additions and 0 deletions.
  1. +3 −0 content/doc/book/pipeline/syntax.adoc
@@ -878,6 +878,9 @@ 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' }`

equals:: Execute the stage when the expected value is equal to the actual value,
for example: `when { equals expected: 2, actual: currentBuild.number }`

expression:: Execute the stage when the specified Groovy expression evaluates
to true, for example: `when { expression { return params.DEBUG_BUILD } }`

0 comments on commit 60f9e48

Please sign in to comment.