Jenkins初識(一)

Jenkins官網:https://jenkins.io/

Jenkins文檔:https://jenkins.io/doc/

關於Jenkins由於初學,該文檔就記錄下Jenkins安裝。

據說Jenkins需 >=JDK8 (支持openJdk)

# yum install -y java-1.8.0-openjdk

# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

# cat /etc/yum.repos.d/jenkins.repo
[jenkins]
name=Jenkins
baseurl=http://pkg.jenkins.io/redhat
gpgcheck=1                #爲1時檢測key

# rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

# yum install -y jenkins

啓動jenkins:

# systemctl start jenkins

# ps aux |grep jenkins
jenkins   ........

 # less /var/log/jenkins/jenkins.log                #查看jenkins日誌

# cat 網頁上指示的路徑

接着就是網頁操作了,網頁操作我就不copy前輩的了。

參考博文1:https://blog.csdn.net/miss1181248983/article/details/82840006

參考博文2:https://blog.csdn.net/miss1181248983/article/details/82901692

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章