環境
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