Second, configure a post-commit hook in your Subversion repository: In the repository directory of your Subversion-server, a directory
hookexists. In this directory you may already have a file
post-commitwith 744 permissions. If not, a file
post-commit.tmplexists. In that case, copy the file and change the permissions:
$ cd path/to/your/repository/hook $ cp post-commit.tmpl post-commit $ chmod 744 post-commitTo trigger the build via Subversion, just put the following line at the end of the
wget -b http://HUDSON_URL/job/JOB_NAME/build?token=my_automated_build > /dev/nullThat’s it.
This is cached version of this.
To trigger build with password-protected jenkins, you could check this great article.