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.