前置条件
- 操作系统要修改成中文区域,同时双字符要设置为中文
- 时区要设置为东八区
安装 Jenkins
在 Windows 上安装 Jenkins
- 从 https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 下载安装 Java 8
- 从 https://jenkins.io/download/ 下载最新版本
在 Ubuntu 上安装 Jenkins
- add the repository key to the system.
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
- append the Debian package repository address to the server's sources.list:
deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
- When both of these are in place, we'll run update so that apt-get will use the new repository:
sudo apt-get update
- Finally, we'll install Jenkins and its dependencies, including Java:
sudo apt-get install jenkins
参考