-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Minor
-
Component/s: pipeline-model-definition-plugin
-
None
I created a declarative pipeline with the following syntax and it did not behave as I expected.
either the syntax should be rejected or it should work - otherwise surprises ensue...
pipeline {
agent none
environment {
POM_ONLY = false // (also change to true to check)
}
stages {
stage("test") {
when {
expression {
POM_ONLY == false
}
}
steps {
echo "pom only is false!"
}
}
stage("notest") {
when {
expression {
POM_ONLY != false
}
}
steps {
echo "pom only is true!"
}
}
}
}
- duplicates
-
JENKINS-41748 Environment variables cross references aren't supported
-
- Closed
-