[JIRA] [workflow-plugin] (JENKINS-32551) Pipeline script from SCM: ClearCase not available

37 views
Skip to first unread message

Ralf.Schroedter@rohde-schwarz.com (JIRA)

unread,
Jan 21, 2016, 8:41:03 AM1/21/16
to jenkinsc...@googlegroups.com
Ralf Schroedter created an issue
 
Jenkins / Bug JENKINS-32551
Pipeline script from SCM: ClearCase not available
Issue Type: Bug Bug
Assignee: Jesse Glick
Attachments: SelectBox.PNG
Components: workflow-plugin
Created: 21/Jan/16 1:40 PM
Environment: OS : Windows 7 SP1 64 Bit
Jenkins ver 1.625.3
Pipeline plugin 1.13
Labels: workflow clearcase
Priority: Minor Minor
Reporter: Ralf Schroedter

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?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Feb 1, 2016, 3:01:13 AM2/1/16
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Praqma Support
 

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.

Jenkins / New Feature JENKINS-32551
Change By: Jesse Glick
Issue Type: Bug New Feature
Component/s: clearcase-plugin
Component/s: workflow-plugin
Priority: Minor Major
Labels: clearcase  workflow
Assignee: Jesse Glick Praqma Support

Devraj.Mahida@L-3com.com (JIRA)

unread,
Feb 17, 2016, 11:38:02 AM2/17/16
to jenkinsc...@googlegroups.com
Devraj Mahida commented on New Feature JENKINS-32551
 
Re: Pipeline script from SCM: ClearCase not available

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@bmo.com (JIRA)

unread,
Apr 2, 2016, 1:49:02 PM4/2/16
to jenkinsc...@googlegroups.com

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@bmo.com (JIRA)

unread,
Oct 4, 2016, 5:48:01 PM10/4/16
to jenkinsc...@googlegroups.com

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

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

deshari143@gmail.com (JIRA)

unread,
Dec 17, 2016, 7:41:04 PM12/17/16
to jenkinsc...@googlegroups.com

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

deshari143@gmail.com (JIRA)

unread,
Dec 17, 2016, 7:41:05 PM12/17/16
to jenkinsc...@googlegroups.com
desh hari started work on New Feature JENKINS-32551
 
Change By: desh hari
Status: Open In Progress
Reply all
Reply to author
Forward
0 new messages