发布于 

Jenkins使用指南

Jenkins使用指南

学习入门

配置 git windows

配置 mvn windows

升级版本

1
2
3
# 替换下载的 war 包
find /usr -name jenkins.war
/usr/share/java/jenkins.war

配置 jenkins 插件中心为国内镜像地址

1
2
3
4
进入 Manage Jenkins -》 Manage Plugin -> Advanced 最下面有 Update Site,
设置为:
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
http://mirror.xmission.com/jenkins/updates/update-center.json

Failure running any sh operations on Windows

1
Windows machines don’t have sh support from the Jenkins Pipeline. Use bat or powershell.

Jenkins Docker error: Invalid agent type

1
2
3
Invalid agent type "docker" specified. Must be one of [any, label, none].

Jenkins Docker plugin, or the Jenkins Docker Pipeline plugin. Just add those two Jenkins plugins