It's all about the answers!

Ask a question

Trigger a build based on changes in RTC SCM


Bernie Bonn (21910) | asked Feb 27 '13, 10:53 a.m.
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



permanent link
Spencer Murata (2.3k115971) | answered Feb 27 '13, 11:02 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Robin Bobbitt (59679) | answered Feb 27 '13, 11:12 a.m.
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

permanent link
Bernie Bonn (21910) | answered Mar 04 '13, 4:57 p.m.
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...
The participant in the link Robin mentioned above is actually ready to use. Just add the participant to the server and configure the Project Area to use it.
I tried myself and it worked, but have in mind that the author himself mentioned that it isn't ready for production.


permanent link
Spencer Murata (2.3k115971) | answered Mar 05 '13, 8:27 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 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


Register or to post 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.