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?
One answer
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.
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?