Configure Jenkins to build build for each commit?

6

I have Jenkins properly installed and generating build every 30 minutes, but I'd like to build build with every commit in the svn repository.

I tried to configure the option: Check the SCM periodically, but I did not succeed.

Does anyone know how to do it?

    
asked by anonymous 14.01.2014 / 17:55

2 answers

4

I recommend using a 'Post-commit hook', where each commit the SVN server notifies Jenkins via a URL and triggers the build. This way you avoid overhead if the query periodicity is low or you have many projects.

Examples and tutorials: link link

    
15.01.2014 / 18:52
0

See here how I am:

I set up to check the repository every 5 minutes.

    
15.01.2014 / 19:44