- Java jre and jdk should be installed.
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
We could also use http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key
for the stable version
##Execution
Jenkins will be available on port 8080.
So, open a browser and go to localhost:8080
- Go to
http://localhost:8080/pluginManager/
- Search for github in the
available plugins
and install it. - We need to restart after installation, we have one of 2 options
- Go to
localhost:8080/safeRestart
- or Go to
localhost:8080/restart
: which forces the restart even if build processes were in the BG
- Choose git as the source code management
- Check the periodically .. currently using @weekly flag to make a weekly build
可以试一下更好用的开源 flowci,简单易用,支持 docker。https://github.com/FlowCI/docker