when (Jenkins Declarative Pipeline Syntax)
https://www.jenkins.io/doc/book/pipeline/syntax/#when
例 https://www.jenkins.io/doc/book/pipeline/syntax/#when-example
#Declarative_directives
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)
https://www.jenkins.io/blog/2018/04/09/whats-in-declarative/#new-when-conditions