Hi All,
I have the following pipeline. I don't expect the steps in the when
condition to run, but they are. Can anyone tell me what i'm doing wrong? (I
know using an expression instead of a simple equals is overkill, but this
is a simplified example to show my issue)
-Michael
pipeline {
// Discarded: Promote Builds When...
agent any
environment {
Development = true
}
stages {
stage('test') {
when {
not {
expression {
Development == ~/(?i)(1|Y|YES|T|TRUE|ON|RUN)/
}
}
}
steps {
echo 'Development is false'
}
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/f76ece7d-c962-4914-bdbd-c8addfb58ea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.