Loading...

How to Install Jenkins on Ubuntu 18.04?

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing Jenkins on Ubuntu 18.04

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.

Prerequisites

Before you begin, ensure that you have the following prerequisites:

  • An Ubuntu 18.04 server with root access
  • A non-root user with sudo privileges

Step 1: Update System Packages

First, let's update the system packages to the latest version by running the following command: sudo apt update && sudo apt upgrade -y

Step 2: Install Java Development Kit (JDK)

Jenkins requires Java Development Kit (JDK) to be installed. To install OpenJDK 11, run the following command: sudo apt install openjdk-11-jdk -y

Step 3: Add Jenkins Repository

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'

Step 4: Install Jenkins

Now, we can install Jenkins by running the following commands: sudo apt update sudo apt install jenkins -y

Step 5: Start and Enable Jenkins

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

Step 6: Configure Firewall

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

Step 7: Access Jenkins Web Interface

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.

Refer A Friend
Get $25

Installing Jenkins
Jenkins installation guide
Install Jenkins on Ubuntu 18.04
Step-by-step Jenkins installation
Jenkins installation tutorial
Jenkins setup on Ubuntu
Installing Jenkins on Linux
Jenkins configuration on Ubuntu 18.04
Jenkins installation steps
How to install Jenkins on Ubuntu 18.04

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.