ubuntu on svn + maven + jenkins automatic deployment

The company's project management with maven, code management using the svn. Well, after the project development needs labeled jar package, deployed to test on linux, but also redeployed after the bug occurs. This process is more complicated. Recently discovered jenkins not only can do continuous integration, automated deployment can also be very convenient. Here's how I set up svn + maven + process jenkins automated deployment environment on ubuntu.

1.jenkins installation

There are various ways to install the operating system jenkins on the official website, ubuntu installation process is as follows:

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu


2.jenkins Configuration

After installation, browser access ip: 8080 appears jenkins management interface. Click New



The next step is disposed after point determination


Select an item in an address here in svn


pre steps maven project's build command input

Enter the building shell command post steps executed after the success I have here is compiled jar package is to be copied to / usr / local / workspace directory, then run, where $ {WORKSPACE} represents the project directory jenkins placed,

Here Available el expression variables can click on the map link to check on the red box.


Click the button to execute the red box

The project will be compiled maven, shell scripts run automatically after a successful execution. Logs can be queried in the console.



Released six original articles · won praise 1 · views 8545

Guess you like

Origin blog.csdn.net/guangmingguangming/article/details/46869205