• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Jenkins on Debian 11

Written by Admin, Updated On January 16, 2023
debian, java, jdk, jenkins
How to Install Jenkins on Debian 11 Linux

Jenkins is an open-source automation server that supports continuous integration (CI) and continuous delivery (CD). It 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 guide you will learn how to install Jenkins on Debian 11 Bullseye system.

How to Install Jenkins on Debian 11#

Perform the following steps to install Jenkins on Debian 11 system:

Step 1 – Prerequisites#

  • You must be login as root or user with sudo privileges.
  • Jenkins is written in Java, it required Java runtime environment for running. 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 default-jdk

Step 2 – Enable Jenkins PPA#

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 will show OK as output upon the the successfully key import. After that, run the following command to add the Jenkins repository to your system:

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

Step 3 – Install Jenkins on Debian#

You can install the latest version of Jenkins and update the appropriate package list:

sudo apt update
sudo apt install jenkins

The 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-install-jenkins-debian-11

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

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

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

customize-jenkins

Next, it will ask to install suggested plugins or you 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-debian-11

Next, Page will ask you to set the URL for your Jenkins instance. The field will populate with an automatically generated URL.

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 Debian 11 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.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install Puppet on Ubuntu 22.04
Next Article   How to Set up SSH Keys on Ubuntu 22.04

Related Posts

  • How to Change Hostname Debian 11

    How to Change Hostname on Debian 11

    February 3, 2023
  • How to Install Python 3.11 on Debian 11

    How to Install Python on Debian 11

    January 25, 2023
  • How to Install Mongodb on Debian 11

    How to Install MongoDB on Debian 11 Linux

    January 11, 2023

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Jenkins on Debian 11
    How to Install Jenkins on Debian 11 January 5, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook