Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install Jenkins on Ubuntu 22.04 - DesignLinux

Dec 23 2022
designlinux 0 Comments
How to Install Jenkins on Ubuntu 22.04

Jenkins is an open-source CI/CD software that supports continuous integration (CI)and continuous delivery (CD). It’s offers number of plugins for building deployments and automation for your applications. This also helps to automate the repetitive tasks involved in the software development process. In this tutorial you will learn how to install Jenkins on Ubuntu 22.04.

How to Install Jenkins on Ubuntu 22.04#

Peform the following steps to install Jenkins on your system:

Step 1 – Prerequisites#

  • You must login as root or user with sudo privileges.
  • Jenkins is based on Java, so it’s required to have Java runtime environment to run Jenkins. If you don’t have Java installed on your system, run below commands for update the package index and install the OpenJDK 11:
sudo apt update
sudo apt install openjdk-11-jdk

Step 2 – Enable Jenkins PPA#

At first, we will download and import the Jenkins repository GPG keys using wget:

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

It should show OK as output upon the the successfully key import. Run the following command on your system to add the Jenkins repository:

sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

Step 3 – Install Jenkins on Ubuntu#

After that, update the apt package list. Then you can install the latest version of Jenkins:

sudo apt update
sudo apt install jenkins -y

By default Jenkins runs on port 8080. If other service is using same port, you can edit /etc/default/jenkins configuration file and update HTTP_PORT value to 8081 or other port.

HTTP_PORT=8080

Enable and start the Jenkins service by executing:

sudo systemctl enable --now jenkins

Step 4 – Setting Up Jenkins#

To access your server, open your favorite browser and type your domain or IP address, followed by port 8080 (or changed port), http://your_domain_or_ip_address:8080.

It will show screen as below.

unlock-jenkins-ubuntu-22-04

The default installation password can be found at /var/lib/jenkins/secrets/initialAdminPassword as showing in above image. To find the password use cat command:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Enter the password it into the Administrator password field and click on Continue.

customize-jenkins-ubuntu-22-04

It will ask to install plugins first or you may want to select specific plugins. Click on the Install suggested plugins box, and the installation process will start immediately.

Next, create an admin account for your Jenkins setup. Fill out the required information and click Save and Continue.

jenkins-create-admin-user

After that, Jenkins will ask you to set your URL. The field will automatically populate after the URL is generated.

jenkins-instance-configuration

Check the URL and click on the Save and Finish button to complete the process.

jenkins-is-ready

Click on the Start using Jenkins button, and you will be redirected to the Jenkins dashboard logged in as the admin user you have created in one of the previous steps.

jenkins-homepage

That’s it, you’ve successfully installed Jenkins on your system.

Conclusion#

You have learned how to install and complete the initial configuration of Jenkins on Ubuntu 22.04 system. To learn more about Jenkins take a look at official Jenkins documentation page.

If you have any questions or suggestion, please leave a comment below.

Related

Tags: java, jdk, jenkins, ubuntu

Progress – Show Percentage of Copied Data for (cp, mv, dd, tar) Commands

Prev Post

How to Install Java on Ubuntu 22.04

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 1
  • 59
  • 1,054,831

DesignLinux.com © All rights reserved

Go to mobile version