I have configured Jenkins and created a job to checkout, build and run a simple project from SVN. I could configure this job to run periodically, like once every five minutes. But I'd like it to build the project only when something has changed on the SVN repository. I read the "Builds by source changes" section of this document, but could not figure out what exactly I am meant to do! Any help would be appreciated!
Asked
Active
Viewed 3,171 times
3 Answers
3
When you configure your job you have to do this:
In the Source Code Management specify the source management system you use (for instance SVN) and fill all required fields (url, authentication, ...) (probably already done since you are able to do a checkout)
in the Build Triggers section : choose Poll SCM with a schedule
*/10 * * * *
for checking the repository every 10 minutes.

ben75
- 29,217
- 10
- 88
- 134
-
What's the meaning of `10 * * * *`. Does it mean once every 10 minutes too? – B Faley Jan 02 '13 at 13:05
-
1`10 * * * * * ` means at the tenth minute of every hour – Atropo Jan 02 '13 at 13:16
-
H/10 * * * * better, as someone explains here http://stackoverflow.com/questions/26383778/spread-load-evenly-by-using-h-rather-than-5 – Emilio Jul 21 '15 at 09:54
1
what you are looking for is Subversion post commit hook that will execute what ever you script in your hook script. Take a look at the following example by Mike West:
Mike West - Subversion Post-commit-hook
good luck!

atlasloewenherz
- 341
- 2
- 11