Clearcase Remote Client Utilities to make your hard life easy
Jenkins CCRC integration script. You will have to use one node for both SCM pulling and build steps (e.g. it's not possible to pull CCRC changes on master but fetch changes and build on a node)
- Setup CCRC and CCRC CLI (http://www-01.ibm.com/support/docview.wss?uid=swg24021929)
- Setup a CCRC repo in the node's remote FS root at some repo_dir
- Put update_cc.bat somewhere and edit it to set proper CCRC connection variables
- Install ScriptTrigger plugin (https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin)
- Set your job custom workspace directory to repo_dir
- Add ScriptTrigger build trigger to your job
- Set ScriptTrigger's script to
your\node\path\to\update_cc.bat repo_dir
- Set exit code to 0
- Restrict ScriptTrigger to run only on your node
- Add a schedule to the ScriptTrigger
- Do NOT enable concurrent build option. It can run the update while the project is building and ruin the results
Now your jenkins node will be periodically asked by master to run the script and check its exit code. Script returns 0 if update was successful and changes were found. Otherwise (if error happens or no changes found) it returns non-zero error codes.
Feel free to add any improvements to the scripts.