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

How to deliver changes to RTC from Jenkins job?

I would like to check in / deliver some build results to an RTC stream from a Jenkins pipeline job.

There's a recent enhancement to the Jenkins plugin which seems aimed at what I need, but I don't see documentation or an example of how to accomplish this.

If I try to use lscm, it doesn't have Jenkins' credentials and I get "CRJAZ0100W A password is required."

Is there some way to pass the Jenkins credentials to lscm? Are there API calls I can make with groovy from within Jenkins?

0 votes



One answer

Permanent link

If you are using pipeline jobs, there is a withCredentials step that allows you inject username,password from a credentials object into variables that can then be used in the scm/lscm command.

1 vote

Comments

Thanks, the credentials-binding plugin works to get the username/password to lscm. Now my problem is that RTC thinks my workspace (created with "checkout scm") is out of sync.

Problem running 'checkin':
Local file system is out of sync. Run 'lscm load' with --force option to reload the workspace.

Do you get the same error when using scm command instead of lscm?

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
× 12,020
× 151

Question asked: Mar 21 '17, 8:33 a.m.

Question was seen: 3,298 times

Last updated: Mar 28 '17, 12:53 p.m.

Related questions
Confirmation Cancel Confirm