[workflow-plugin] Bug in the Snippet Generator for "General SCM"?

139 views
Skip to first unread message

Rafael Ribeiro Rezende

unread,
Jan 15, 2015, 10:04:42 AM1/15/15
to jenkins...@googlegroups.com

I'm using Rational Team Concert from IBM as SCM, and they provide the Team Concert plugin for this purpose.

When I use the Snippet Generator, I see it listed as below:


Then I input my parameters, click on Generate Groovy and voilà:


After (no matter what I put on the Script field above) when I hit Save and come back to the job configuration, I'm unable to generate any other snippet for General SCM. All the SCM options disappeared except Subversion, as seen below:


Am I doing anything wrong?

Jesse Glick

unread,
Jan 15, 2015, 3:24:15 PM1/15/15
to jenkins...@googlegroups.com
On Thursday, January 15, 2015 at 10:04:42 AM UTC-5, Rafael Ribeiro Rezende wrote:

I'm using Rational Team Concert from IBM as SCM, and they provide the Team Concert plugin for this purpose.

When I use the Snippet Generator, I see it listed

Then this is a bug, since according to the plugin page it uses a 1.480.x baseline, and as https://github.com/jenkinsci/workflow-plugin/blob/master/scm-step/README.md#supporting-workflow-from-an-scm-plugin notes, the plugin needs to be updated to depend on at least 1.568. Thus RTC should not have been listed here to begin with, since GenericSCMStep.getApplicableDescriptors specifically omits any SCMDescriptor which !isApplicable(WorkflowJob), and the default implementation of this overload in new Jenkins is false.

So the _later_ behavior (only showing Subversion) is correct. It is the display of CVS and RTC which is the bug.

At any rate, you should file an RFE asking that your SCM be upgraded, mark it with the ‘workflow’ label, and get it mentioned here: https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#scms

Rafael Ribeiro Rezende

unread,
Jan 28, 2015, 6:09:09 AM1/28/15
to jenkins...@googlegroups.com
Thanks Jesse for the reply!

By previous experience I learned that the best way to involve IBM on this is to create an enhancement in their own jazz.net platform. So that's what I did...
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=343552

I'm leaving here the link in case anyone wants to follow (and vote!). Unfortunately, a login is required to view it.

Jesse Glick

unread,
Feb 25, 2015, 5:56:54 PM2/25/15
to jenkins...@googlegroups.com
On Wednesday, January 28, 2015 at 6:09:09 AM UTC-5, Rafael Ribeiro Rezende wrote:
By previous experience I learned that the best way to involve IBM on this is to create an enhancement in their own jazz.net platform. So that's what I did...
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=343552

Not sure what that says, but you should create a JIRA issue in the teamconcert-plugin component. 

Rafael Ribeiro Rezende

unread,
Mar 17, 2015, 11:36:32 AM3/17/15
to jenkins...@googlegroups.com
So, I just got some info from IBM that the implementation efforts are under evaluation, but there is no plan to release it before the last quarter of 2015.
In any case, as it seems from the github history that you are updating the Workflow compatibility list yourself, here is the JIRA issue:
https://issues.jenkins-ci.org/browse/JENKINS-27464

Thanks!
Reply all
Reply to author
Forward
0 new messages