环境
Ubuntu, 其他平台查看官方文档
步骤
- 安装jdk
sudo apt-get install openjdk-8-jdk
- 安装Jenkins
- first add the key to your system
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
- Then add a Jenkins apt repository entry
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
- .Update your local package index, then finally install Jenkins
sudo apt-get update
sudo apt-get install jenkins
- 启动Jenkins
执行sudo systemctl start jenkins