Installation and configuration of jenkins

There are many ways to install jenkins, the easiest is to download the jenkins.war package directly

First download jenkins.war download link  http://mirrors.jenkins.io/war-stable/

Execute java -jar jenkins.war to start the default port is 8080, after startup, the admin password will be printed in the log

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

1175537c84fb41a3a7154a8cc75b7ca8

This may also be found at:/usr/.jenkins/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

Enter localhost:8080 in the browser to log in  

Direct use of java -jar will cause the process to be occupied. Modify the startup command

nohup /usr/jdk1.8/bin/java -jar jenkins.war --httpPort=8888 > jenkin.log 2>&1 &

This command specifies the http port as 8888 and outputs the log to jenkin.log

Create an account after logging in to jenkins (system management-account management)

Then you can use the account to log in

Install plugin 

      1.git 

 

Git

This plugin integrates Git with Jenkins.

     2.mail

 

Mailer

This plugin allows you to configure email notifications for build results

 

Restart after installation 

Settings Global Tool Configuration (System Management-Global Tool Configuration)

Note that the path of git is the full path of the git command, not the bin directory. If git is not installed, please refer to  git installation

Then system settings (system management-system settings)

 

 For mail server, please refer to mail microservice

Click Save and the configuration is basically complete

 

Guess you like

Origin blog.csdn.net/name_is_wl/article/details/81252975