checkin and delivery from local file system to rtc through Jenkins
I need to deliver a folder from my file system to a component in a stream on RTC
I am trying to do this from a jenkins pipeline, using a SCM command sequence but I have not been able to commit the files.
The easiest alternative is to use the RTC plugin for Jenkins (i suppose), but I only use the plugin to do the checkout of a component on a machine, but I don't know how to do the reverse i.e. do a checkin and delivery (commit) from file system to component.
Can this be done with the RTC plugin or in any other way without using an SCM comnand sequence?
3 answers
To my knowledge the Jenkins plugin has the capabilities needed to make the SCM data available to the build. So you can load them down. To my knowledge there is no capability to check in and deliver files during the build using the Jenkins plugin.
As far as I can tell, you would have to use the SCM command line and do it in a postprocessing step after the build. 2 things to consider
1. Build a simple prototype and learn how to SCM command line works first, before trying to do it in the build.
2. From my perspective, the build results do not belong into SCM. The build results should be in some storage and be accessible as HTTP page and linked to the build result. Checking in and delivering build results can lead to failing the checking and deliver which can be hard to detect. Also build results are typically big binaries which do not belong into an SCM system. I know that there are others with different ideas.
If your Jenkins server is set up as a build engine then you can define Post Build Deliver in a build job. See my responses in this earlier post:
Comments
My 2 cents ...
Generally when cmd line utilities (RTC SCM) are invoked from an application (Jenkins), environment variables necessary for the cmd line utility are met as system environment variables are modified by the application for its own purposes. Try setting the environment variables explicitly in your script.