Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Kick off an RTC Build when a snapshot / baseline is created

Hello,
   I have configured Builds (Build definition / Build Engine) when a change happens and set it up as continuous Integration.

Now the question is "How to kickoff a build only if a baseline/snapshot is created my a build engineer/automated script" and not just any change?

I plan to use this to Kickoff a Jenkins in the future (When a baseline is created in the Integration Component/Stream(s))

Thanks
RK

0 votes



4 answers

Permanent link
 There is no Extension Point and Operation ID that would allow to hook up a follow up action for this. You would have to somehow poll the system.  

0 votes


Permanent link
see this post
https://jazz.net/forum/questions/132739/jenkins-polling-is-too-slow-can-rtc-notify-jenkins-immediately

My message starts here
"my DeliverHook plugin is available here "

there are two diferent plugins mentioned.

mine, like svn/git, the plugin provides a commit hook. I think I see baselines.
the plugin runs a script.. so you can do whatever you want, same as the svn/git commit or post receive hooks

the other (just above mine), will activate an RTC Build Definition. (which might launch a jenkins job too)

0 votes


Permanent link
Out of curiousity, did anyone get the 'build only if there are changes accepted' feature successfully working with an RTC/Jenkins configuration, out of the box (I believe this was mentioned earlier). 
If I understood correctly this feature was not properly working previously (granted I am a version or two behind so i'm not sure if this has been recently resolved).

Other than adding third party scripts or extensions is it at the very least possible, at this time, for Jazz source control to automatically kick off a Jenkins build upon accepted changes? (in addition to the above question this would be very helpful to get working correctly)

Thx

0 votes


Permanent link
Regarding 'build only if there are changes accepted' feature, it works but with a known issue Build Definition triggers scheduled build even without changes (384477). If there are any change sets that is not visible to the RTC user configured in Jenkins, then it would result in repeated builds without any changes being accepted.

There is still no out of the box support for automatically triggering a Jenkins build when some changes are delivered to a stream.

Thanks,
Sridevi

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,220
× 562
× 151

Question asked: May 17 '16, 11:09 a.m.

Question was seen: 4,251 times

Last updated: Oct 25 '16, 5:23 a.m.

Confirmation Cancel Confirm