安裝與配置
文件
https://jenkins.io/zh/doc/pipeline/tour/ge...
需要配置環境變數
export JENKINS_HOME=/usr/local/jenkins
如果不配置環境變數,則會預設安裝在
~/.jenkins
需要重新安裝的話,刪除以上安裝目錄即可
啟動
java -jar jenkins.war --httpPort=9090
訪問
密碼路徑
/Users/design/.jenkins/secrets/initialAdminPassword
外掛安裝失敗
Dependency errors:
Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins to restore the functionality provided by these plugins.
Jenkins Git plugin version 3.10.0
git-client version 2.7.7 is missing. To fix, install version 2.7.7 or later.
matrix-project version 1.7.1 is missing. To fix, install version 1.7.1 or later.
workflow-scm-step version 2.4 is missing. To fix, install version 2.4 or later.
credentials version 2.1.14 is missing. To fix, install version 2.1.14 or later.
workflow-step-api version 2.13 is missing. To fix, install version 2.13 or later.
mailer version 1.18 is missing. To fix, install version 1.18 or later.
scm-api version 2.2.6 is missing. To fix, install version 2.2.6 or later.
ssh-credentials version 1.13 is missing. To fix, install version 1.13 or later.
structs version 1.18 is missing. To fix, install version 1.18 or later.
Pipeline: Stage View Plugin version 2.11
jquery-detached version 1.2.1 is missing. To fix, install version 1.2.1 or later.
pipeline-rest-api version 2.11 is missing. To fix, install version 2.11 or later.
handlebars version 1.1 is missing. To fix, install version 1.1 or later.
momentjs version 1.1 is missing. To fix, install version 1.1 or later.
workflow-job version 2.0 is missing. To fix, install version 2.0 or later.
解決方案:
將其地址修改為:
http://mirrors.tuna.tsinghua.edu.cn/jenkin...
或
http://mirror.esuni.jp/jenkins/updates/upd...
清華的映象比日本的要快多了
映象地址查詢,可以從這裡選取映象:
http://mirrors.jenkins-ci.org/status.html
plugins download:
https://updates.jenkins-ci.org/download/pl...
外掛問題解決:
https://www.jianshu.com/p/a01b8b41cd43
坑爹之處:
由於公司坑爹網路問題,始終無法從線上自動下載外掛
但是同樣的方式,部署到阿里雲上的時候,卻是正常的了....
配置jdk
配置maven
配置git
本作品採用《CC 協議》,轉載必須註明作者和本文連結