Foreword
Jenkins is an open source CI & CD software, used to automate a variety of tasks, including build, test and deploy software. In automated testing, continuous integration is used, running regular tasks were timed automatic monitoring. More details can be viewed jenkins official website: https://jenkins.io/zh/doc/
Download Jenkins
Preparing the Environment
Jenkins is Java-based, so you first need to configure the Java environment variables. Jenkins currently supported version of java is java8, it must be configured java8 environment.
java environment configuration, see Mac version -Jdk installation and configuration environment
Remarks:
If the junior partner need to log in to download Oracle java8 time, to be small series Web site to download, download the following address:
https://pan.baidu.com/s/1suQ_K8K97UR5OQOeUDtRRg
[If you do not find the installation package, you may move the position at finishing small series of network disk, you can find a small series of private comment made]
download
Method (a): official website to download
Jenkins There are two versions of the official website, you can download the corresponding version needed.
Method (b): By mounting Jenkins homebrew
(1) Installation homebrew
Installation Details can be MAC- mounting kit management tools Homebrew
(2) Installation jenkins
Terminal Open -> input command "brew install jenkins"
Installation configuration
Jenkins started the service
Terminal Open -> enter the command "jenkins"
Unlock Jenkins
1, browser, enter the URL HTTP: // localhost: 8080 , entered the unlocked page
2, get the unlock code
Terminal Open -> input command "sudo cat <password file path>"
3. Click Continue btn
start installation
According to their preferences install the recommended plugins, or select a plug-in installation
Configuration Jenkins
Create an administrator
Setting url
Into the table
Modify the admin password
由于admin初始密码过于繁琐,故安装过程中未创建管理员用户,直接使用admin账号操作的小伙伴,需要修改下初始密码。
点击右上角admin->设置->向下滑动页面至password处,修改密码即可