Installing Jenkins
wget -q -O https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
This packae installation will:
- Setup Jenkins as a daemon launched on start. See /etc/init.d/jenkins for more details.
ln -s /**/bin/java /usr/bin/java
if you install java in the user configuration, you need this.
- Create a ‘jenkins’ user to run the this service
already automate create
sudo usermod -aG root jenkins
- Direct console log output to the file /var/log/jenkins/jenkins.log. Check this file if you are troubleshooting jenkins.
<