It's all about the answers!

Ask a question

Pull source code from RTC using Jenkins


Manish Ranglani (835) | asked Apr 29 '14, 9:40 a.m.

Hello Everyone,

I am new to RTC and Jenkins world.

I have added RTC - plugin and build tool kit to Jenkins and test connection with the RTC is successful.

Now i need to pull source code from RTC using Jenkins.

If you can guide me ahead.

Thanks in advance


Comments
sam detweiler commented Apr 29 '14, 9:58 a.m.

you create a build definition on RTC that says load from this workspace (these components) ...  and u need a build engine on RTC that talks to Jenkins.
my jenkins job looks like this


Manish Ranglani commented Apr 29 '14, 10:07 a.m.

Thanks for the reply Sam.

I tried to create a new build engine but i cant see option for Jenkin engine type.


sam detweiler commented Apr 29 '14, 10:07 a.m.

and u could also just select the 'Just accept and fetch from a build workspace' instead of using a build definition


sam detweiler commented Apr 29 '14, 10:10 a.m. | edited Apr 29 '14, 10:12 a.m.

select new Build Engine, Create new, then u should see this dialog



Manish Ranglani commented Apr 29 '14, 10:26 a.m.

I will go with 'Just accept and fetch from a build workspace'  this option.

In build trigger section which condition can help me to create a build when ever a new change is checked-in?


sam detweiler commented Apr 29 '14, 11:32 a.m. | edited Apr 29 '14, 12:31 p.m.

RTC does not provide an 'immediate' build trigger. the build engines (JBE and Jenkins) need to poll.

on the JBE build engine definition says how often (default 3 minutes)..
on the jenkins side, in the job either select build periodically, or poll scm
both will ask for the schedule, see the ? help for the format. (cron typically)

in the RTC build definition, there is a checkbox for build only if changes. so it will poll, check for changes, and if none, quit silently.

showing 5 of 6 show 1 more comments

One answer



permanent link
Lara Ziosi (33811112) | answered Apr 29 '14, 9:58 a.m.
Hello,

Have you already seen this technote?

http://www-01.ibm.com/support/docview.wss?uid=swg21664334

Please let me know if you have further questions.

Thank you and regards, Lara

Comments
Lara Ziosi commented Apr 29 '14, 10:01 a.m.

My apology, I mis-read your question and assumed you were asking about UrbanCode Deploy/RTC/Jenkins. If you are not using UrbanCode Deploy, then the above technote does not apply to your case.


Manish Ranglani commented Apr 29 '14, 10:29 a.m.

Yes. i just need to pull the source code .
Thanks for the reply Lara.

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.