Jenkins a series - set up articles

Copyright: technology is shared, and if reproduced the drawing infringement, please inform, will be the first time to delete https://blog.csdn.net/qq_22917163/article/details/91041689

@ [TOC] Jenkins a series

Foreword

As a technical person will be lazy, it will use some of the software can reduce repetitive manual labor to improve productivity and to extricate themselves from these repetitive work, Jenkins CI as a tool, complete with a variety of plug-ins can certainly most companies use to meet the requirements.

jenkins role

	以前我们要发布一个应用项目,需要手动的去拉取代码、打包代码、然后将打包后的代码传到服务器上去,重新运行项目。这些都是一些重复性的工作,试想一下,作为一个运维人员,天天陷入这种无止境的重复工作中是多么的可怕。
	jenkins恰恰可以将这些工作集成到一起,我们只需要在新建一个项目的时候配置一遍,以后发布项目,只需要点一下鼠标,剩下的工作都交给jenkins去完成就好了,它会帮我们从git上拉取代码,执行打包、推送到指定服务器上、重新运行项目,我们需要关心的就只是看下是否构建成功啦。
	说了这么多,下面开始正题,从搭建开始介绍。

jenkins dependence

jenkins rely java runtime environment, different versions of jenkins dependent jdk version, from which specific version began to rely jdk1.8 have forgotten, we all check under it, anyway, the latest version of jenkins certainly rely jdk1.8 above, or will start error.

Install java runtime environment not talk about it here, all of you to Baidu bar.

jenkins installation

1. Download jenkins run the package, you can download the latest version
http://mirrors.jenkins.io/war-stable/

2.直接运行jenkins包
java -Xms2048m -Xmx2048m -DJENKINS_HOME=/Users/lianght/jenkins -jar /Users/lianght/Downloads/jenkins.war --logfile=/var/log/jenkins/jenkins.log --httpPort=8473 --debug=5

 注意,这里要提前定义好jenkins的家目录和日志文件目录,不然默认会安装到当前用户家目录的.jenkins目录下

3. Log jenkins
Here Insert Picture Description
initial default administrator password in the startup log
Here Insert Picture Description
Here Insert Picture Description
we generally recommend choose to install just fine, what the latter need to install plug-in we

The installation is complete log in to Home
Here Insert Picture Description

到这里,jenkins安装就完成了,其实安装没什么难的,就是一个java程序,只要是搞IT的,就应该知道怎么运行一个java程序吧
下一篇,我会创建一个项目,来讲解jenkins具体的使用方法。

Guess you like

Origin blog.csdn.net/qq_22917163/article/details/91041689