================================================================================
Jenkins Environment
================================================================================
Prerequisites:install Java
Check if Java is not already installed:
Java-version
If it returns "The program Java can is found in the following packages", Java hasn ' t been installed yet, so execute the FO llowing command:
sudo apt-get install Default-jre
#use deploy user goes to install Jenkins service
Su-deploy
Wget-q-o-http://pkg.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
sudo systemctl enable Jenkins
Sudo/etc/systemd/systemd-sysv-install Enable Jenkins
Check the service whether is running normally:
"Sudo service Jenkins status"
Run Jenkins:
"Sudo service Jenkins start"
Stop Jenkins:
"Sudo service Jenkins Stop"
Restart Jenkins:
' Sudo service Jenkins restart '
Install Directory:/var/lib/jenkins
Log Directory:/var/log/jenkins/jenkins.log
================================================================================
Install a Jenkins on Ubuntu system