This is how I got Jenkins 2.157 to start building after committing to the SVN repository.
1. Allow read access in Jenkins
Using the Jenkins web interface, go to Manage Jenkins Configure Global Security and select the " Allow anonymous read access :

If you skip this step, you will receive the following response when you try to start the assembly using the HTTP request (described in the third step):
Authentication required
2. Configure your build trigger
From the Jenkins web interface, go to the build task and determine that you want to run the assembly using a script (this will be the SVN commit hook in the next step):

3. Create a post-commit hook
Finally, go to the hooks directory of the repository and add a shell script called post-commit (the name is important, otherwise SVN will not execute it after the commit):
Make the script executable: chmod +x post-commit .
Here's an extended version of post-commit that logs post-commit information, such as the author of a commit.
To learn more about commits, go to the documentation .
Matthias Braun Jan 14 '19 at 16:56 2019-01-14 16:56
source share