How to install Jenkins on Ubuntu Linux 18.04 desktop machine?

How to install Jenkins on Ubuntu Linux 18.04 desktop machine?

      Here, we proceed with Open JDK and Jenkins installation by configuring and updating its Debian repository on our local machine. This is most recommended way of installing Jenkins on Ubuntu Linux operating system. Once the installation is done, you need to verify the status of Jenkins service to check whether it is properly running or not.

# Add Jenkins official GPG key to package manager.
$ curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null

# Add Jenkins repository to package manager source list.
$ echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null

# Check if update available for system packages.
$ sudo apt update

# Install Open JDK package from repository.
$ sudo apt install openjdk-17-jre

# Install Jenkins package from repository.
$ sudo apt install jenkins

# Enable Jenkins service at boot.
$ sudo systemctl enable jenkins.service

    • Related Articles

    • How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Linux host machine. # Install required system packages. $ ...
    • How to install Vagrant on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install Vagrant to automate and manage virtual machines. Now, let's see how to do Vagrant installation on Linux host machine. # Download Vagrant. $ wget ...
    • How to install Docker on Ubuntu Linux 18.04 desktop machine?

      Docker is available in two editions: Community Edition (CE) and Enterprise Edition (EE). Here, we'll proceed with Docker CE, the Community Edition. To do a clean installation, you must first remove existing Docker installation, if anything found. And ...
    • How to install Git on Ubuntu Linux 18.04 desktop machine?

      Here, we install Git using system package manager. This is most recommended way of installing Git on Ubuntu Linux operating system. No matter how we install Git, its just a command line utility. Once the installation is done, you need to verify Git ...
    • How to install Terraform on Ubuntu Linux 18.04 desktop machine?

      Let's install Terraform by downloading and extracting the executable binary for Linux. This is most recommended way of installing Terraform on any Linux-based operating system. No matter how we install Terraform, its just a executable binary. Once ...