| {{Also }}NaNy NaNd is shown for a pipeline which has a step with an expression, use the following pipeline job, just update label to match something in your jenkins String foo pipeline { agent { node { label 'fc29' {{ }}} {{ }}} stages { {{ stage('Create postbuild.sh') {}} {{ when {}} {{ expression { foo == "bar" }}} {{ }}} {{ steps {}} {{ writeFile file: 'postbuild.sh', text: "bar"}} {{ }}} {{ }}} {{ }}} }  |