When trying to save a build with a single step condition, get the following
error:
Exception: java.lang.RuntimeException: Failed to instantiate class
org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder
from
{"":["2","0","1"],"buildStep":{"classPath":"","groovyName":"(Default)","javaOpts":"","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"println
\"Hi\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.BooleanCondition","token":"${ENV,var=\"XXXX\"}"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"}
Stacktrace:
javax.servlet.ServletException: java.lang.RuntimeException: Failed to
instantiate class
org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder
from
{"":["2","0","1"],"buildStep":{"classPath":"","groovyName":"(Default)","javaOpts":"","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"println
\"Hi\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.BooleanCondition","token":"${ENV,var=\"XXXX\"}"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"}
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:616)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
Has anyone else seen this error before? Any workarounds?
Thanks,
Bob
*** *** ***
This message contains information which may be confidential and privileged.
Unless you are the addressee (or authorized to receive for the addressee), you
may not use, copy or disclose to anyone the message or any information
contained in the message. If you have received the message in error, please
advise the sender by reply e-mail and delete the message.
--
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].
For more options, visit https://groups.google.com/groups/opt_out.