When using the UCM Clearcase Plugin (not the Clearcase UCM plugin). When saving the job we get the following error: Caused by: java.lang.IllegalArgumentException:
Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.scm.SCM from {"viewname":"Jenkins_${USER_NAME}${NODE_NAME}${JOB_NAME}${DASH_WORKSPACE_NUMBER}","viewpath":"view","stream":"OLBB6.9.2_Int@/vobs/CTP_Proj","useupdate":true,"changeset":
{"value":"branch"}
,"buildFoundationBaseline":false,"excludedRegions":"","mkviewoptionalparam":"","rmviewonrename":true,"multiSitePollBuffer":"","filterOutDestroySubBranchEvent":false,"overrideBranchName":"","stapler-class":"hudson.plugins.clearcase.ClearCaseUcmSCM","$class":"hudson.plugins.clearcase.ClearCaseUcmSCM"}
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:676)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:771)
... 81 more
Caused by: java.lang.IllegalArgumentException: Failed to convert the changeset parameter of the constructor public hudson.plugins.clearcase.ClearCaseUcmSCM(java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,boolean,boolean,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,java.lang.String,boolean,hudson.plugins.clearcase.AbstractClearCaseScm$ChangeSetLevel,hudson.plugins.clearcase.viewstorage.ViewStorage,boolean)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:773)
at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674)
... 83 more
Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.clearcase.AbstractClearCaseScm$ChangeSetLevel from
{"value":"branch"}
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:676)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:771)
... 85 more
Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.clearcase.AbstractClearCaseScm$ChangeSetLevel
at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:247)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:758)
at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:674)
... 87 more
This seems to work if you change the
{value:"no"}
to just "no"...something about the way that enums are serialized from JSON I guess...adding the DataBoundConstructor to the enum doesn't work since it's a private constructor (and can't be made public)...how do we get the form to submit the JSON as a "no" instead of
{value:"no"}
?
My guess is it's something to do with https://github.com/jenkinsci/clearcase-plugin/blob/d27f8ec2ed99001b5d0ffb80dbbde045b4262c3a/src/main/resources/hudson/plugins/clearcase/ClearCaseUcmSCM/config.jelly Changeset section...maybe shouldn't be radio? But not sure if changing it will cause other problems (I don't have a good understanding of stapler).
There are at least three ClearCase SCM plugins; I am not sure which you are using. Whichever it is, it would need to be updated to support Pipeline.