环境说明
- Ubuntu Server 18.04
- JDK1.8
安装Jenkins
sudo wget -q -O - http://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add
添加Debian pacakage到源清单 /etc/apt/sources.list.d
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
安装最新版本Jenkins
sudo apt-get install jenkins
启动Jenkins
service jenkins start
访问Jenkins管理页面