How To Install Jenkins on Ubuntu 20.04 / Ubuntu 18.04

How To Install Jenkins on Ubuntu 20.04 / Ubuntu 18.04

Jenkins is an open-source automation server that helps to automate the repetitive tasks involved in the software development process, which includes building, testing, and deployments. Jenkins was forked from the Oracle Hudson project and written in Java. Here, we will see how to install Jenkins on Ubuntu 20.04 / Ubuntu 18.04.

Jenkins is an open-source automation server that helps to automate the repetitive tasks involved in the software development process, which includes building, testing, and deployments.

Jenkins was forked from the Oracle Hudson project and written in Java.

Here, we will see how to install Jenkins on Ubuntu 20.04 / Ubuntu 18.04.

Install Jenkins On Ubuntu 20.04

Install Java

Since Jenkins is written in Java, it requires Java 8 or Java 11 to run. Here, I will install the OpenJDK 11 for Jenkins installation.

sudo apt update

sudo apt install -y default-jre apt-transport-https wget

If you want to use the Oracle Java in place of OpenJDK, then use any one of the links to install it.

READ: How To Install Oracle Java on Ubuntu 20.04

READ: How To Install Oracle Java on Ubuntu 18.04

Verify the Java version after the installation.

java -version

Output:

openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

Add Jenkins Repository

Jenkins provides an official repository for its packages. To use the Jenkins repository, first, we will need to add the Jenkins public key to the system.

wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -

Then, add the Jenkins repository to your system.

echo "deb https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list

Install Jenkins

Install Jenkins package using the apt command.

sudo apt update

sudo apt install -y jenkins

The Jenkins service should now be up and running. You can check the status of the Jenkins service using the below command.

sudo systemctl status jenkins

ubuntu jenkins ubuntu 18.04 ubuntu 20.04

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install Jenkins on Ubuntu 20.04 | 18.04

This brief tutorial shows students and new users how to install Jenkins on Ubuntu 20.04 | 18.04. Jenkins, an open source, self-contained Java-based automation server which was forked from the Hudson project can easily be installed on Ubuntu systems.

How To Install Nvidia Drivers On Ubuntu 20.04 / Ubuntu 18.04 | ITzGeek

In this article we will learn how to install Nvidia Drivers On Ubuntu 20.04 / Ubuntu 18.04 . All Desktops and Laptops come with a graphics card for displaying images over a monitor.

How to Install Anaconda on Ubuntu 20.04 | 18.04

This brief tutorial shows students and new users how to install Anaconda open source distribution on Ubuntu.How to Install Anaconda on Ubuntu 20.04 | 18.04 20.04 | 18.04 Anaconda is the world’s most popular Python/R data science and machine…

How to Install Tomcat on Ubuntu 20.04 | 18.04

How to Install Tomcat on Ubuntu 20.04 | 18.04 - For those who don’t know what Tomcat is, below is an overview. Apache Tomcat software is an open…

How to Install Gradle on Ubuntu 20.04 | 18.04 |

This brief tutorial shows students and new users how to install Gradle on Ubuntu 20.04 | 18.04. Gradle is an open-source build automation system that helps developers automate…