Ubuntu安裝Jenkins

姜家志發表於2016-03-24

在Ubuntu上安裝Jenkins的持續整合環境。參考地址:http://blog.csdn.net/ruisheng_412/article/details/8066330

安裝

下載Debian package的repository,並安裝到系統中,方便安裝和升級:

wget -q -O – http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | sudo apt-key add

新增Jenkins的源到/etc/apt/sources.list:

sudo sh -c `echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list`

更新本地包,安裝jenkins:

sudo apt-get update
sudo apt-get install jenkins

啟動

啟動Jenkins:

sudo /etc/init.d/jenkins start

關閉Jenkins:

sudo /etc/init.d/jenkins stop

配置檔案地址為:/etc/default/jenkins

相關文章