Install Jenkins in Linux

Source: Internet
Author: User

Install Jenkins in Linux

First knowledge of Jenkins

1. Preparations before Jenkins is installed. The java environment, tomcat, maven environment, and mysql have been configured in linux.

2. Jenkins official website download Generic java package (war) download link is http://mirrors.jenkins.io/war-stable/latest/jenkins.war

Wget url (this url)

3. Put the downloaded file to webapps under the tomcat directory.

4. Start./startup. sh in the bin directory of tomcat.

5. Open a browser such as http: // 192.168.145.128: 8080/jenkins to the jenkins page.

6. Enter the command as prompted to get the password for download. the download is complete on the Jenkins page.

(Note: Downloading may often fail. Continue and write down the failed items. If some items are not affected, You can manually install the plug-in.)

7. Go to the registration page,It is best to change the password, The system provides a little longer, enter the page to start setting users, and build projects

(Note that the maven project is managed by svn.)

8.Create an items name fill in the project name select (build a free style project) Click OK

9. 1> project name projectName 2> source code management selectionSubversion3> Save

10. On the Jenkins homepage, click the execute build button after the project you have built.

11. Click the project corresponding to the build queue on the left, click the build history time link, and click console output in the left menu to check whether the console outputs success (success)

12. On the linux session page, copy the/root/. jenkins/workspace/project name/target/Project war file to the webapps file under tomcat.

13. (project deployment completed) start tomcat to view the project

Open several more session pages to facilitate operations. view the log output on the session page.

 

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.