Trigger a build based on changes in RTC SCM
Is there a way to trigger a build based on a Check-in or deliver? I was trying to find this in Build Definition, using the Eclipse client. Can this be done? We are using RTC 4.0.1.
If someone can point me in the right direction that would be great. We are trying to avoid having our build engine poll the scm for changes to reduce overhead. Thanks for any info! Bernie |
4 answers
Generally the polling approach is how most build systems work. It really shouldn't be a problem of overhead since the builds should only actually occur when a delivery is detected. However if you want to make this approach you could combine the scm command line check in with the requestTeamBuild Ant task to wrap the checkin action with the requesting build action.
However you should know that you may encounter some unique issues with this approach since this isn't the standard way that CI builds are done.
~Spencer |
Hi Bernie,
Here is a blog post containing an example of how to trigger a build on deliver: http://jorgediazblog.wordpress.com/2013/01/24/rtc-build-on-deliver-participant/ Robin |
Hi Spencer,
Thanks for the reply. I have gone through the Ant task walk through from the link you sent. I got it working but am still confused about how this substitutes for a trigger. Or really, how I set it up to automatically run a build when there is a change delivered. So, I don't have to ,manually run a build from Jenkins or Eclipse. I set up my build def to run every 10 minutes, and checked the box in Jazz Source Control that says "Build Only if there are changes accepted" ( I was just guessing here, hoping it would work...). But it just builds every 10 minutes even though there are no changes. Am I missing something? Thanks! Thanks for your response too Robin, I looked at the link but it seemed to be more coding than I really wanted to get into at this point. Comments
Rafael Rezende
commented May 28 '14, 7:39 a.m.
Old post, but for future reference...
|
If it is running every 10 minutes, then the build workspace must not be accepting the changeset. Make sure that the Ant script is doing an accept, otherwise it will see the same bunch of pending updates every 10 minutes!
~Spencer
|
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.