Jenkins is an open-source CI/CD (Continuous Integration and Continuous Delivery) automation server built in Java.
In this tutorial, I will show how to install Jenkins on Ubuntu-20.04, 18.04.
Jenkins requires Java, so firstly it needs to install OpenJDK-8 JRE/JDK (Java Runtime Environment and Java Development Kit).
Check if Java is installed and what is the version:
$ java -version
Install OpenJDK-8 JRE/JDK on Ubuntu:
$ sudo apt-get update $ sudo apt-get install openjdk-8-jdk openjdk-8-jre
Install Jenkins on Ubuntu
Install the latest stable Jenkins version on Ubuntu:
$ wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - $ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' $ sudo apt-get update $ sudo apt-get install jenkins
As only Jenkins is installed on Ubuntu, it will be started and added to auto-start automatically.