RTC 4.0.1 integration with Jenkins - how can I check to see if any changesets were accepted into the workspace?
I am running an RTC -> Jenkins build every 15 minues and would like to be able to determin on the Jenkins side after the JBE steps completes whether any changesets were accepted into the workspace. Is there a property I can examine to determine if any changesets were accepted? If so I can check that property and if no changesets were accepted I can exit the Jenkins build script wthout executing any of the acutal code build steps.
I am using a modified version of the buildOnHudsonJenkinsAdvanced script.
Accepted answer
~Spencer
Comments
The RC=2 in the JBE output only occurs for scheduled builds, when there are no changes accepted and hence nothing to build. If the build is being scheduled from Jenkins, then this won't apply.
So within the "buildOnHudsonJenkinsAdvanced script" how would I check for an RC=2 and then exit the script?
Cancel that last question - I found the section "loadworkspace" where the return code(s) are evaluated.