Jenkins

安装与配置

文档

https://jenkins.io/zh/doc/pipeline/tour/ge...

需要配置环境变量

export JENKINS_HOME=/usr/local/jenkins
如果不配置环境变量,则会默认安装在
~/.jenkins
需要重新安装的话,删除以上安装目录即可

启动

java -jar jenkins.war --httpPort=9090

访问

http://localhost: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.

Jenkins

解决方案:

Jenkins

Jenkins

Jenkins
将其地址修改为:
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

Jenkins

配置maven

配置git

本作品采用《CC 协议》,转载必须注明作者和本文链接
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!