|
How to Configure Jenkins with SVN for CI |
|
Subject: How to Configure Jenkins with SVN for CI
Author: Linux
Posted on: 11/04/2017 05:49:07 AM
Prerequesites
A running Jenkins server: http://10.11.12.13:8080/jenkins/ A running SVN repository server: http://10.11.12.13/svn/xyz/trunk A service account on SVN for Jenkins to pull source code of your project
Step 1. Create a new configuration
On jenkins, click on New Item Type a name for Enter an item name Select the Build a free-style software project option and click on OK
Step 2. Where to get source code In the Source Code Management section, select Subversion Specify your Repository URL, for example, http://10.11.12.13/svn/xyz/trunk/projects/hello-one Set Credentials to the username and password of the SVN user Uncheck Ignore externals
Step 3. When to build In the Build Triggers section, check the Poll SCM box -- poll for changes Type H/15 * * * * for Schedule -- every 15 minutes
Step 4. How to build In the Build section, click the Add build step button. Select Invoke top-level Maven targets Type maven goals, for example, clean package for Goals
Step 5. What if the building fails -- optional In the Post-build Actions section, click the Add post-build action button. Select E-mail Notification from the dropdown. Specify the Recipients by email address list Check the box Send e-mail for every unstable build.
Note: For this step to work, you have to configure SMPT server on system level Jenkins > Manage Jenkins > Configure System
References:
|
|
|
|