• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • clearcase-plugin
    • OS : Windows 7 SP1 64 Bit
      Jenkins ver 1.625.3
      Pipeline plugin 1.13

      I updated the workflow (now pipeline) plugin from version 1.12 to 1.13

      In 1.12, it was possible to choose "ClearCase" when using "Workflow script from SCM". Applying these changes caused an exception.

      In 1.13, it is not possbile to choose "ClearCase" anymore, only Mercurial, Subversion and RTC are supported.

      Is this a bug or a feature?

          [JENKINS-32551] Pipeline script from SCM: ClearCase not available

          Jesse Glick added a comment -

          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.

          Jesse Glick added a comment - 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.

          Devraj Mahida added a comment -

          My org used this ClearCase plugin, and most others that I'm aware of use it too. It seems to be the most popular and least buggy.

          I guess my question is: is an upgrade on anyone's radar. I don't see it on the SCM list for the pipeline\workflow list at all.

          I've had the same issue where it goes into an exception, but we haven't updated our pipleline plugin yet so I don't know about it disappearing. And it's blocking adoption of the pipeline plugin across the entire org.

          Devraj Mahida added a comment - My org used this ClearCase plugin , and most others that I'm aware of use it too. It seems to be the most popular and least buggy. I guess my question is: is an upgrade on anyone's radar. I don't see it on the SCM list for the pipeline\workflow list at all. I've had the same issue where it goes into an exception, but we haven't updated our pipleline plugin yet so I don't know about it disappearing. And it's blocking adoption of the pipeline plugin across the entire org.

          George Bell added a comment -

          Would love if the clearcase plugins could be updated for pipeline, currently get an error when saving a multibranch pipeline project with clearcase set as the scm.

          George Bell added a comment - Would love if the clearcase plugins could be updated for pipeline, currently get an error when saving a multibranch pipeline project with clearcase set as the scm.

          George Bell added a comment -

          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).

          George Bell added a comment - 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).

          desh hari added a comment -

          Hello Team,
          Still this is a Bug or is its something wrong with our config steps as I'm also getting same issue while using Base Clear Case with dynamic views plugin config steps with Jenkinsfile [Pipeline as code] leading to :
          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
          View Tag: Core_view
          View path: Core_view
          configSpec: element * CHECKEDOUT
          element * ...\Core_view_test\LATEST
          mkbranch Core_view_test
          element * /main/LATEST
          LoadRules: load M:\Core_view\<vob_name>
          changeset: current branch
          Branches: Core_view_test
          use dynmic view--> view root: M:\ [advanced options]
          Di not reset config spec : checked
          Script path: Jenkinsfile [this is placed in Clearcase with simple echo command]

          comments or resolutions are appreciated, thanks

          desh hari added a comment - Hello Team, Still this is a Bug or is its something wrong with our config steps as I'm also getting same issue while using Base Clear Case with dynamic views plugin config steps with Jenkinsfile [Pipeline as code] leading to : 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 View Tag: Core_view View path: Core_view configSpec: element * CHECKEDOUT element * ...\Core_view_test\LATEST mkbranch Core_view_test element * /main/LATEST LoadRules: load M:\Core_view\<vob_name> changeset: current branch Branches: Core_view_test use dynmic view--> view root: M:\ [advanced options] Di not reset config spec : checked Script path: Jenkinsfile [this is placed in Clearcase with simple echo command] comments or resolutions are appreciated, thanks

          Joseph Choi added a comment -

          Jenkins – 2.249.1
          ClearCase Plug-in – 1.6.3
          Pipeline – 2.6
          Pipeline: SCM Step – 2.11

          With the latest versions above using pipeline script to checkout scm from ClearCase, it still shows the following error.  The ClearCase plugin seems to be very outdated.  Is there still any active development for the ClearCase plugin?

          java.lang.AbstractMethodError: you must override the new overload of checkout
                  at hudson.scm.SCM.checkout(SCM.java:498)
                  at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
                  at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
                  at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
                  at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
                  at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
                  at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
                  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
                  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
                  at java.base/java.lang.Thread.run(Thread.java:834)

          Joseph Choi added a comment - Jenkins – 2.249.1 ClearCase Plug-in – 1.6.3 Pipeline – 2.6 Pipeline: SCM Step – 2.11 With the latest versions above using pipeline script to checkout scm from ClearCase, it still shows the following error.  The ClearCase plugin seems to be very outdated.  Is there still any active development for the ClearCase plugin? java.lang.AbstractMethodError: you must override the new overload of checkout         at hudson.scm.SCM.checkout(SCM.java:498)         at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)         at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)         at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)         at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)         at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)         at java.base/java.lang.Thread.run(Thread.java:834)

            praqma Praqma Support
            ralf_schroedter Ralf Schroedter
            Votes:
            10 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: