We're here to assist with any of your needs, don't hestitate to reach out.
Jenkins is an open-source automation server that helps in automating the building, testing, and deployment of software projects. It is widely used in software development for continuous integration and continuous delivery (CI/CD).
Before installing Jenkins, it is recommended to update the system packages using the following commands:
sudo apt update
sudo apt upgrade
Jenkins requires Java to run. Install the JDK package by running the following command:
sudo apt install default-jdk
Add the Jenkins repository key to the system using the following command:
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
Next, add the Jenkins repository to the system's sources.list:
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Update the packages list and install Jenkins by running the following commands:
sudo apt update
sudo apt install jenkins
Start the Jenkins service and enable it to start on boot:
sudo systemctl start jenkins
sudo systemctl enable jenkins
Once Jenkins is up and running, you can access its web interface by opening your browser and entering the following URL:
http://your_server_ip_or_domain:8080
On the initial visit, Jenkins will ask you to unlock it by providing an auto-generated password. Retrieve the password by running the following command:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Copy and paste the password into the web interface to continue the configuration process.
By following these steps, you have successfully installed and configured Jenkins on your Ubuntu 20.04 server. You can now use Jenkins to automate your software development processes and streamline your CI/CD workflows.
What our customers say about us
Create your free account today.