- Learning Continuous Integration with Jenkins(Second Edition)
- Nikhil Pathania
- 133字
- 2021-07-02 21:18:37
Installing the latest version of Jenkins
To install the latest version of Jenkins, follow these steps in sequence:
- Add the repository key to the system using the following command:
wget --no-check-certificate -q -O \
- https://pkg.jenkins.io/debian/jenkins-ci.org.key | \
sudo apt-key add -
- 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 binary/ | \
sudo tee /etc/apt/sources.list.d/jenkins.list
- Update the package index:
sudo apt-get update
- Now, install Jenkins using the following command:
sudo apt-get install jenkins
- See the Starting, stopping, and restarting Jenkins on Ubuntu section if you are required to start Jenkins.
- 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 .