when (Jenkins Declarative Pipeline Syntax)
The when directive allows the Pipeline to determine whether the stage should be executed depending on the given condition.
equals
when { equals expected: 2, actual: currentBuild.number }
allOf
ANDに相当する書き方
2つのequalsが両方成り立つのように使った
when { allOf { branch 'master'; environment name: 'DEPLOY_TO', value: 'production' } }
Example 17. Nested condition (same behavior as previous example)