Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » Start Build by Hudson when some one commit on Svn(Hello All, I am new on Hudson and i have to configure hudson such as that when any development team member commit on svn then that time hudson will start project building. Help me. Thanks in advance)
Start Build by Hudson when some one commit on Svn [message #1258484] Thu, 27 February 2014 12:36 Go to next message
sumit kumar is currently offline sumit kumarFriend
Messages: 6
Registered: February 2014
Junior Member
Hello All, I am new on Hudson and i have to configure hudson such as that when any development team member commit on svn then that time hudson will start project building. Help me. Thanks in advance
Re: Start Build by Hudson when some one commit on Svn [message #1258561 is a reply to message #1258484] Thu, 27 February 2014 14:06 Go to previous messageGo to next message
Jonathan Dumont is currently offline Jonathan DumontFriend
Messages: 58
Registered: March 2011
Location: Laval
Member
Hi,

Once you have your job created in Hudson, you can decide what will trigger the build. It can be other builds, a specific alarm (each day at 01h00 for exemple), or a change on your SVN.
To do this, use the 'Pool SCM' option, and plan a regularly check, for example :
0 8-19 * * 1-5

This will check if there is a commit, from monday to friday, each hour from 08h to 19h. Once a commit is detected, the build will start automatically.
Re: Start Build by Hudson when some one commit on Svn [message #1258569 is a reply to message #1258561] Thu, 27 February 2014 14:15 Go to previous messageGo to next message
sumit kumar is currently offline sumit kumarFriend
Messages: 6
Registered: February 2014
Junior Member
i have done this but this is static way means it will work on specific time period. and i want dynamic means when some changes occur on subversion then Hudson will trigger building.

[Updated on: Thu, 27 February 2014 14:16]

Report message to a moderator

Re: Start Build by Hudson when some one commit on Svn [message #1258586 is a reply to message #1258569] Thu, 27 February 2014 14:40 Go to previous messageGo to next message
Jonathan Dumont is currently offline Jonathan DumontFriend
Messages: 58
Registered: March 2011
Location: Laval
Member
In fact, with this configuration, Hudson check the SVN at static time period, so potentially often : each 5 minutes for example. And the build will be triggered only if there is a change in SVN. So you have your 'dynamic' build.
Re: Start Build by Hudson when some one commit on Svn [message #1258594 is a reply to message #1258586] Thu, 27 February 2014 14:50 Go to previous messageGo to next message
sumit kumar is currently offline sumit kumarFriend
Messages: 6
Registered: February 2014
Junior Member
Hi,
i have already done this and i have scheduled Hudson build periodically with every minute.at present after a minute Hudson checks the svn and trigger the building either changes is present or not. i do not want this wasteful round trip. that why i want to make dynamic (when changes occur)

[Updated on: Thu, 27 February 2014 14:51]

Report message to a moderator

Re: Start Build by Hudson when some one commit on Svn [message #1258608 is a reply to message #1258594] Thu, 27 February 2014 15:03 Go to previous messageGo to next message
Jonathan Dumont is currently offline Jonathan DumontFriend
Messages: 58
Registered: March 2011
Location: Laval
Member
Indeed the mechanism is the same between the alarm trigger and the SCM pool trigger, but to answer to your needs you have to disable the alarm trigger and keep ONLY the SCM pool trigger, with a check each 5 of 10 minutes for example.
Re: Start Build by Hudson when some one commit on Svn [message #1261999 is a reply to message #1258608] Mon, 03 March 2014 06:46 Go to previous messageGo to next message
sumit kumar is currently offline sumit kumarFriend
Messages: 6
Registered: February 2014
Junior Member
Thanks Jonathan Dumont.
Re: Start Build by Hudson when some one commit on Svn [message #1263350 is a reply to message #1258484] Tue, 04 March 2014 11:51 Go to previous message
Ankur Singh is currently offline Ankur SinghFriend
Messages: 1
Registered: March 2014
Junior Member
Instead of polling from Hudson to SVN use Pre commit hook in SVN to trigger Hudson build when changes are submitted to SVN to trigger a build !
Previous Topic:3.1.2: Maven 3.2.1 does not work
Next Topic:Missing image after 3.1.2 update
Goto Forum:
  


Current Time: Tue Mar 19 11:38:03 GMT 2024

Powered by FUDForum. Page generated in 0.02891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top