Jenkins+GitHub 項目環境搭建(一)

安裝Jenkinsjava

yum install -y java-1.8.0-openjdkgit

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

rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key服務器

yum install -y jenkinsless

systemctl start jenkinsgoogle

ps aux |grep jenkinsspa

less /var/lib/jenkins/secrets/initialAdminPassword 獲取密碼3d

修改 /var/lib/jenkins/updates/default.json(若是沒有就無論,版本問題)
http://www.google.com 替換 www.baidu.com 國內網址
修改 /var/lib/jenkins/hudson.model.UpdateCenter.xml
gitHub 配置
settings >>Developer settings >> Personal access tokens
 
配置Jenkins
配置GitHub token 和 GitHub帳號憑據
 
 
 
 

配置GitHub 服務器xml

Manage Jenkins >> Configure Systemblog

相關文章
相關標籤/搜索