Jenkins builds projects with Maven

Source: Internet
Author: User

Building a project using MAVEN requires the MAVEN environment to be installed on Jenkins and the MAVEN configuration added on the Jenkins page

Configuration method View: Jenkins basic Configuration

Create a new project on the Jenkins page

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/AF/wKioL1cHV07DN8LgAAIQk1JUybA687.png "title=" Jenkins1.png "alt=" Wkiol1chv07dn8lgaaiqk1juyba687.png "/>

Configure the source code on the "Manage Source" tab of the project configuration page

Here git way to get the branch source

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/AF/wKioL1cHV2mRiq48AAGtzXg_HYs898.png "title=" Jenkins2.png "alt=" Wkiol1chv2mriq48aagtzxg_hys898.png "/>

If git needs to verify, click "Add" for the account password

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/AF/wKioL1cHV_WxOH6cAADg-y72TjI823.png "title=" Jenkins3.png "alt=" Wkiol1chv_wxoh6caadg-y72tji823.png "/>

Then select the account in "Credentials"

Configure build parameters in the Build tab

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/B3/wKiom1cHV2nwRQgPAABk5n0k4eo756.png "title=" Jenkins4.png "alt=" Wkiom1chv2nwrqgpaabk5n0k4eo756.png "/>

Click Save, then click Build now on the page to start the project build package

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/B3/wKiom1cHV4jxpA5QAAFdmYwz7aI682.png "title=" Jenkins5.png "alt=" Wkiom1chv4jxpa5qaafdmywz7ai682.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/B3/wKiom1cHV5qyqWthAAGTPqEq0RM385.png "title=" Jenkins6.png "alt=" Wkiom1chv5qyqwthaagtpqeq0rm385.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/B3/wKiom1cHV7zw5R6hAAF_SkaStps648.png "title=" Jenkins7.png "alt=" Wkiom1chv7zw5r6haaf_skastps648.png "/>

The "#1" in the first build completes with a status of success

You can click this tab to select "Console Output" from the drop-down menu to view the build process

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7E/B3/wKiom1cHWMqAqPx3AADKn2sfem4875.png "title=" Jenkins8.png "alt=" Wkiom1chwmqaqpx3aadkn2sfem4875.png "/>

Build the war package after packaging is complete in the server ~/.jenkins/workspace/{job_name}/target directory


The project is packaged and finished

Note: The status of the project build and the icon meaning of the project health, click on the "Legend" query

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/B3/wKiom1cHWQOBSsL2AAD1xbaWeZ0293.png "title=" Jenkins9.png "alt=" Wkiom1chwqobssl2aad1xbawez0293.png "/>


This article is from the "Wandering Fish" blog, please make sure to keep this source http://faded.blog.51cto.com/6375932/1761756

Jenkins builds projects with Maven

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.