Learning Continuous Integration with Jenkins(Second Edition)
上QQ阅读APP看书,第一时间看更新

Installing the latest stable version of Jenkins

If you prefer to install a stable version of Jenkins, then follow these step in sequence:

  1. Add the repository key to the system using the following command:
        wget --no-check-certificate -q -O - \
https://pkg.jenkins.io/debian-stable/jenkins-ci.org.key | \
sudo apt-key add -
  1. You should get an output of OK. Next, append the Debian package repository address using the following command:
        echo deb http://pkg.jenkins.io/debian-stable binary/ | \
sudo tee /etc/apt/sources.list.d/jenkins.list
  1. Update the package index:
        sudo apt-get update
  1. Now, install Jenkins using the following command:
        sudo apt-get install jenkins 
  1. See the Starting, stopping, and restarting Jenkins on Ubuntu section if you are required to start Jenkins.
  2. Jenkins is now ready for use. By default, the Jenkins service runs on port 8080. To access Jenkins, use  http://localhost:8080/ or http://<Jenkins server IP address>:8080/ in a browser.

In order to troubleshoot Jenkins, access the logs file /var/log/jenkins/jenkins.log.

The Jenkins service runs under the user Jenkins, which is automatically created upon installation.