Jenkins
安装与配置
文档
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 协议》,转载必须注明作者和本文链接