Contents Introduction How to Plan Your Cloud Adoption Strategy for Accelerated Business Growth? Take Control of Your Cloud Platform...Read More
In this tutorial, we will set up Jenkins by installing the package using apt-get from it’s Debian Package repository.
The Jenkins version is included with the default packages of Ubuntu, therefore to take advantage of the latest features or latest fixes we will use the packages maintained by the project itself to install Jenkins.
Java version 8 or greater should be available in the environment to install Jenkins.
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list
sudo apt-get update
sudo apt-get install jenkins
sudo service jenkins start
sudo service jenkins status
● jenkins.service – LSB: Start Jenkins at boot timeoutput
Loaded: loaded (/etc/init.d/jenkins; bad; vendor preset: enabled)
Active: active (exited) since Tue 2019-09-19 05:49:26 UTC; 3min 2s ago
sudo ufw allow 8080
sudo ufw status
sudo ufw allow OpenSSH sudo ufw enable
The initial setup is completed.
Open the URL in browser using the server domain name or IP address with the default Jenkins port like below:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Great! Enjoy using Jenkins.
In this article, we have installed and configured the Jenkins using packages, then we have started the server and opened the firewall ports, then created an administrative user. Now you can explore Jenkins.