Installation and simple configuration jenkins

1. Download

https://jenkins.io/zh/download/  (download may be slow)

2. Install

Alternatively war package, on the tomcat

3. Configuration

1) Main Directory Configuration

 

 

 To configure it before the JENKINS_HOME configured, otherwise the project will build on the default home directory

vi /etc/profile

JENKINS_HOME=/home/jenkins_data/
export JENKINS_HOME

2) Installation Tools

As maven git installation and other projects according to their own situation, pay attention to some of the installation directory, jenkins configures

3) plug-in installation

First login get password:

CAT /root/.jenkins/secrets/initialAdminPassword    // home directory

Start tomcat install the prompts to install some plug-ins recommended

If you want to deploy, then tomcat available Deploy to container Plugin carried tomat own management for deployment, but also practical to write their own script.

After the installation is recommended to restart it.

4) global system configuration and security configuration

Some content may be configured according to individual circumstances, I am not too much configuration do not mislead people. It is a bit on Git plugin configuration.

5) Global Configuration Tool

Some configuration tools for things used in the project.

6) Build projects

 

Construction of the target input:

clean package

 

 

 

.... unfinished

 

 

reference:

https://blog.csdn.net/aa1215018028/article/details/80866496

https://www.jianshu.com/p/2b7813f7a5e8

 

Guess you like

Origin www.cnblogs.com/julian-chang/p/11939904.html