Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Error using team concert plugin in jenkins pipeline

Hi,
I'm using Team Concert plugin (v 1.2.0.1) in Jenkins to integrate with RTC 5.0.2. It works fine.

I'm starting to use the pipeline plugin and I add the following script (created using the snippet-creation tool):
stage 'SmokeTest'
node('windows'){
    teamconcert([buildDefinition: 'SmokeTestBuild', value: 'buildDefinition'])
    bat '..myscript.bat'
}
but I obtain this not really clear error:

[Pipeline] stage (SmokeTest)
Using the ‘stage’ step without a block argument is deprecated
Entering stage SmokeTest
Proceeding
[Pipeline] node
Running on myserver in C:\JK\workspace\Pipeline test
[Pipeline] {
[Pipeline] teamconcert
RTC : checkout...
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.NullPointerException
	at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1948)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
	at hudson.security.ACL.impersonate(ACL.java:213)
	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
Do you know what I can check to make it working properly? The jenkins configuration are the same that works fine with the freestyle jobs.

Thanks,
Michele

0 votes



One answer

Permanent link
I would suggest to use the "checkout:General SCM" step and choose Rational Team Concert for SCM, instead of using the "teamconcert:Team Concert" step, in the pipeline scripts. The teamconcert step is not updated to reflect some of the latest UI changes.

Thanks,
Sridevi

3 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927
× 151

Question asked: Oct 11 '16, 12:35 p.m.

Question was seen: 4,168 times

Last updated: Oct 12 '16, 6:27 a.m.

Confirmation Cancel Confirm