The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
Installation
manual
1. go to https://jenkins.io/download/ and download .war .deb or whatever package
deb way
Install
1. install jenkins.deb
sudo dpkg -i jenkins.debStart Stop Restart
sudo /etc/init.d/jenkins startsudo /etc/init.d/jenkins stopsudo /etc/init.d/jenkins restartsudo /etc/init.d/jenkins statuswar way
terminal 1. launch jenkins
java –jar jenkins.war2. this will popup
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
62eddecaa617459a8e52e2625a72fcc5This may also be found at: /Users/marcus.chiu/.jenkins/secrets/initialAdminPassword
3. open browser and go to http://localhost:8080/
4. admin credentials
1. verify java was installed
java -version2. make sure JAVA_HOME points to the java home
echo $JAVA_HOME3. make sure PATH has $JAVA_HOME/bin
echo $PATH4. download Tomcat
5. insert jenkins.war into /TOMCAT_HOME/libexec/webapps
6. start Tomcat Server
apt-get
Install
https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch03s05.html
1. add key to your system
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -2. add an entry in your /etc/apt/sources.list
sudo sh -c ‘echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list’3. update debian package repository
sudo apt-get update4. install jenkins
sudo aptitude install -y jenkinsThis will install Jenkins as a service, with a correctly configured startup script in /etc/init.d/jenkins and a corresponding system user called “jenkins”. If you didn’t already have Java installed on your server, it will also install the OpenJDK version of Java. By default, you will find the Jenkins WAR file in the/usr/share/jenkins directory, and the Jenkins home directory in /var/lib/jenkins.
Start Stop Restart
sudo /etc/init.d/jenkins startsudo /etc/init.d/jenkins stopsudo /etc/init.d/jenkins restartsudo /etc/init.d/jenkins status