go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Ubuntu » How to Configure Jenkins with SVN for CI
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: How to Configure Jenkins with SVN for CI
Linux
member
offline   
 
posts: 120
joined: 01/24/2011
from: San Jose, CA
  posted on: 11/04/2017 05:49:07 AM    Edit  |   Quote  |   Report 
How to Configure Jenkins with SVN for CI
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

  •  Profile | Reply Points Earned: 0

     
    Powered by ForumEasy © 2003-2005, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.