Jenkins 是 Open Source CI Sever Open Source 中, 資源最為豐富的 CI系統
CentOS 版本安裝
Step 1. 新增 Jenkins Repo
由於 Jenkins rpm repo 中並沒有 Jenkins 安裝包,因此需要透過第三方去下載 Jenkins repo ,並新增至 rpm 安裝套件中
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
Step 2. 透過 yum 安装 Java 以及 Jenkins
yum install java-1.8.0-openjdk jenkins systemctl start jenkins
讓 Jenkins 開機後隨系統啟動服務
systemctl enable jenkins
如有開啟防火牆記得將 8080 port 開啟,否則無法連線至服務
Step 4. 開啟網頁畫面
開啟 Jenkins 網頁頁面 http://yourserverIP:8080
參考網頁:
https://oranwind.org/-devops-jenkins-an-zhuang-jiao-xue/
https://oranwind.org/-devops-jenkins-yu-centos-ubuntu-an-zhuang-jiao-xue/