Jenkins環(huán)境深入理解
-
- Jenkins相關(guān)配置文件路徑
-
Jenkins工作目錄:/Users/Shared/Jenkins/Home
-
項(xiàng)目目錄:/jobs
-
單個(gè)項(xiàng)目目錄:/jobs/項(xiàng)目名稱
項(xiàng)目配置文件:/jobs/項(xiàng)目名稱/config.xml
項(xiàng)目編譯目錄:/jobs/項(xiàng)目名稱/builds
項(xiàng)目空間目錄:/jobs/項(xiàng)目名稱/workspace
-
插件目錄:/plugins
-
-
Jenkins環(huán)境配置文件:/Library/LaunchDaemons/org.jenkins-ci.plist
配置 日志文件路徑
配置 Jenkins工作目錄
配置 Jenkins啟動(dòng)腳本
配置 Jenkins的用戶歸屬
-
Jenkins參數(shù)配置文件:/Library/Preferences/org.jenkins-ci.plist
配置 http 端口號(hào)
配置 https 端口號(hào)
配置 https 證書(shū)信息
等等碱茁。掺喻。蒂胞。。。。
日志:/private/var/log/jenkins/jenkins.log
-
啟動(dòng)目錄:/Library/Application Support/Jenkins
啟動(dòng)腳本:jenkins-runner.sh
卸載腳本:Uninstall.command
-
重新啟動(dòng)Jenkins
網(wǎng)頁(yè)重啟方式:http://*****/restart
重啟電腦方式
-
手動(dòng)重啟方式:
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
-
[ ] 2. Jenkins 配置 https 地址
-
生成 https 證書(shū)
1
2
3
-
配置 https 證書(shū)位置
將證書(shū)key保存到 /Users/Shared/Jenkins/zhengshu/server-key.pem
將證書(shū)cert保存到 /Users/Shared/Jenkins/zhengshu/server-cert.pem
-
配置 /Library/Preferences/org.jenkins-ci.plist 文件
添加 httpsPort : 8443
添加 httpsPrivateKey : /Users/Shared/Jenkins/zhengshu/server-key.pem
添加 httpsCertificate : /Users/Shared/Jenkins/zhengshu/server-cert.pem
-
配置 /Library/Application Support/Jenkins/jenkins-runner.sh 文件
添加代碼 add_to_args httpsPrivateKey
添加代碼 add_to_args httpsCertificate
-
-
重啟啟動(dòng)Jenkins
重啟電腦方式
-
手動(dòng)重啟方式:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist