Sorry for a late reply to this, but we have a similar situation where we do our web development out of svn and what we ended up doing was editing the post-commit.bat located in the repository's hooks folder(ie C:\Repositories\nameofrepository\hooks\post-commit.bat).
there is a section in there between START-CUSTOM-CODE and END-CUSTOM-CODE.
In there we added the following:
Code:
SET CSCRIPT=C:\WINDOWS\system32\cscript.exe
SET VBSCRIPT=C:\Repositories\post-commit-hook-jenkins.vbs
"%CSCRIPT%" "%VBSCRIPT%" %REPOS% %REV%
By adding the above we told it on commit to run the visual basic script, in the script it essentially just does a wget or an http request to a url on the ubersvn server which triggers the job almost instantly rather then polling for 1minute, ie the link would be:
Code:
http://www.yourserver.com.com:9890/jenkins/job/nameofjenkinsjobgoeshere/build?token=somelongstringofjibberishtoken
Then in your jenkins job you can set it to activate to that token, and whenever that repository has a commit it will trigger the jenkins job instantly rather then waiting for the 1 minute poll. This helps speed up the process a bit.
It would be awesome if we can just have an option in the repository to trigger a jenkins job on commit automatically *wink wink*.
Bookmarks