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 automate various tasks in software development, such as building, testing, and deploying applications. It provides a web-based user interface and offers features like Continuous Integration (CI) and Continuous Deployment (CD). In this guide, we will walk you through the process of installing Jenkins on Ubuntu 18.04.
Before you begin, ensure that you have the following prerequisites:
First, let's update the system packages to the latest version by running the following command: sudo apt update && sudo apt upgrade -y
Jenkins requires Java Development Kit (JDK) to be installed. To install OpenJDK 11, run the following command: sudo apt install openjdk-11-jdk -y
Next, we need to 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 -
After that, add the Jenkins repository URL to the system's sources.list file: sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Now, we can install Jenkins by running the following commands: sudo apt update
sudo apt install jenkins -y
To start the Jenkins service, run the following command: sudo systemctl start jenkins
To enable Jenkins to start on system boot, run the following command: sudo systemctl enable jenkins
If you have a firewall enabled on your server, you need to allow incoming traffic on port 8080, which is used by Jenkins. Run the following command to allow it: sudo ufw allow 8080
You can now access the Jenkins web interface by opening your web browser and navigating to: http://your_server_ip_or_domain:8080
You will be prompted to enter the initial password, which you can obtain by running the following command: sudo cat /var/lib/jenkins/secrets/initialAdminPassword
After entering the password, click on the "Continue" button and follow the on-screen instructions to complete the Jenkins setup.
Congratulations! You have successfully installed Jenkins on Ubuntu 18.04. You can now use Jenkins for automating your software development processes.
What our customers say about us
Create your free account today.