Step by step instructions to build jenkins

Copyright: https://blog.csdn.net/zhydream77/article/details/85266348

Jenkins is an open source software project, designed to provide an open and easy to use software platform that enables continuous integration software has become possible

Jenkins is based on a Java development continuous integration tool for monitoring the continuous repetitive tasks, features include:

1, sustained release software / test project.

2, external monitor to call the work performed.

First, ensure that the system has been installed jdk

Download the official website: http://mirrors.jenkins.io/war-stable/latest/jenkins.war

The first start method:

Change to the directory stored jenkins.war, enter the following:

java -jar jenkins.war

Then enter localhost in the browser: 8080, localhost can be ip of the machine, it may be a computer name. It can open jenkins


The second method is: Open with a tomcat, the jenkins.war file into the webapps directory of tomcat, start jenkins,
will automatically create jenkins directory in the webapps directory, so the address in the address bar to be entered on a ways bit different,
enter: localhost: 8080 / jenkins.
 
Let's start jenkins use the second method.
Start tomcat, browse enter localhost: 8080 / jenkins.

Do experiments in the linux environment:

Step one: set up tomcat environment

[root @ localhost ~] # LS
Anaconda-ks.cfg the Apache-Tomcat-8.0.30.tar.gz jenkins.war template image to download the desktop
apache-tomcat-8.0.30 initial-setup -ks.cfg public documents music video

[root@localhost ~]# yum -y install java-1.8.0-openjdk-1.8.0.131-11.b12.el7.x86_64.rpm

[root@localhost ~]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

[root@localhost ~]# mv apache-tomcat-8.0.30  /usr/local/tomcat
[root@localhost ~]# /usr/local/tomcat/bin/startup.sh 
[root@localhost ~]# ss -untlp  |  grep java
tcp    LISTEN     0      100      :::8080                 :::*                   users:(("java",pid=2265,fd=46))
tcp    LISTEN     0      1      ::ffff:127.0.0.1:8005                 :::*                   users:(("java",pid=2265,fd=67))
tcp    LISTEN     0      100      :::8009                 :::*                   users:(("java",pid=2265,fd=51))
[root@localhost ~]# cp   jenkins.war /usr/local/tomcat/webapps/
[root@localhost webapps]# firefox localhost:8080/jenkins

Step Two: Configure Jenkins

The initial administrator password, Jenkins automatically generated code to find the path of the red above, copying the box provided.

[root@localhost ~]# cat /root/.jenkins/secrets/initialAdminPassword
0b9f3e7005be4c56a832eedd3074aa86


 

Install plug-ins, you can default installation, you can choose, (after jenkins configured can also install plug-in) where we choose the default.

 

 

0

 

Create a user

 

 

 

 

 

Guess you like

Origin blog.csdn.net/zhydream77/article/details/85266348