Jenkins polling is too slow, can RTC notify Jenkins immediately?
![]()
Christian Höltje (5●8●10)
| asked Nov 01 '13, 5:17 p.m.
retagged Nov 04 '13, 11:18 a.m. by Scott Cowan (966●3●10)
I'm using Jenkins LTS + the new Team Center plugin.
The shortest you can set polling to is 5 minutes before Jenkins complains. You can actually set it to once a minute, but that is too slow for fast-feedback. Builds should start the instant they are delivered.
How can I get RTC to notify Jenkins of changes the instant they happen?
|
Accepted answer
![]()
Here is a work item capturing this requirement that you can subscribe to, HPI: Trigger Jenkins build on SCM changes (rather than polling) (246734).
Christian Höltje selected this answer as the correct answer
|
8 other answers
![]()
I see this has been asked before (I didn't find it because I didn't search for "hooks"): https://jazz.net/forum/questions/76612/post-commit-hook-in-rtc
Greg Pflaum's answer looks like it might work, but I'll have to figure out how to write the Java (I'm not a Java expert).
|
![]()
has anyone completed this?
if the plugin launches a script (like the git/svn post-receive/commit hooks..) would need to configure WHERE the script lives.. as you probably don't want it in the web server directory tree.. there are a couple REST methods for invoking Jenkins jobs.. with and without extra parameters. from the no parameters way http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/ with parmeters way https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build |
![]()
my DeliverHook plugin is available here
https://www.dropbox.com/s/wus9574yoj705pl/DeliverHook.zip?dl=0 see the contents for the xml config, and the sample scripts, windows, linux and perl. this supports triggering the jenkins job, where the one Rafael mentions triggers the Build Definition same thing, just different sides of the same process. this triggering process is functionally identical to the SVN and GIT receive and post_receive hooks. the scripts link to the jenkins info this is all developed on my personal time and equipment. |
![]()
Disregard - it looks like (unfortunately) both link are blocked in my office, so i'll try from home later. :)
|