ubuntu使用apt-get安装Jenkins
1、添加存储库密钥
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
2、添加软件包源
echo deb http://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
3、更新存储库
sudo apt-get update
4、安装Jenkins
sudo apt-get install jenkins