After updating the last pipeline plugin 2.5 and dependent plugins on latest
Jenkins 2.45 we are unable to use the "when" closure:
we get the following error:
*java.lang.NoSuchMethodError: No such DSL method 'when' found among steps [...]
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:149)*
for a very simple pipeline in the inline pipeline editor (not in an
external Jenkinsfile):
*node {*
* stage('1') { // for display purposes*
* }*
* stage('2') {*
* when {*
* //return false*
* }*
* }*
* stage('3') {*
* }*
*}*
Does the last release of pipeline-model-definition-plugin 1.0 include the
support for the "when" closure in a stage?
Thank you in advance,
Roi
--
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/5ca0fd0a-0124-44b7-b107-9040bbf20706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.