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
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.
~Spencer
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 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.
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.