• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Jenkins on Ubuntu 20.04

By Abhishek Ghosh January 8, 2022 6:40 pm Updated on January 8, 2022

How To Install Jenkins on Ubuntu 20.04

Advertisement

Jenkins is an extensible, web-based software system for the continuous integration of software components into an application program. It is considered a fork of the Hudson software by Sun, now Oracle. With Jenkins, we can efficiently manage tasks from building to deploying software. We need Oracle JDK 11 installed for Jenkins. Navigate to this webpage:

Vim
1
https://launchpad.net/~linuxuprising/+archive/ubuntu/java/+packages

Find the package oracle-java11-installer-local (11.0.13-1~linuxuprising0) for focal. The version of the script is 11.0.7. In this case, you would need Oracle JDK 11.0.7. Navigate to:

Vim
1
https://www.oracle.com/java/technologies/downloads/

Locate the jdk-11.0.13_linux-x64_bin.tar.gz package (Java SE 11 > JDK Download), download to your computer and upload to your server. Now run these commands:

Advertisement

---

Vim
1
2
3
4
5
6
7
sudo apt install software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EA8CACC073C3DB2A
sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo mkdir -p /var/cache/oracle-jdk11-installer-local/
sudo cp jdk-11.0.7_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
sudo apt install oracle-java11-installer-local

You can manage by running:

Vim
1
2
3
4
5
6
7
8
9
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config java
# sudo nano /etc/environment
## add
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
##
source /etc/environment
echo $JAVA_HOME

Back to installing Jenkins! Run these commands :

Vim
1
2
3
4
5
6
7
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.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 update
sudo apt upgrade
sudo apt install jenkins
sudo systemctl start jenkins
# sudo systemctl status jenkins

You’ll get the below output against sudo systemctl status jenkins :

Vim
1
2
3
4
5
6
● jenkins.service - LSB: Start Jenkins at boot time
   Loaded: loaded (/etc/init.d/jenkins; generated)
   Active: active (exited) since Fri 2020-06-05 21:21:46 UTC; 45s ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 1137)
   CGroup: /system.slice/jenkins.service

How To Install Jenkins on Ubuntu 20-04

Remember that you may need to open your firewall’s port 8080. You’ll need this password for the next step:

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

Visit the frontend of Jenkins on browser:

Vim
1
http://server's-ip_or_domain:8080

You should receive the Unlock Jenkins screen. Paste the password we got in the above step. In the next screen, click the “Install suggested plugins” option, which will immediately begin the installation process. When the installation will get completed, you will be prompted to set up an administrative user.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Jenkins on Ubuntu 20.04

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Analysis of Jenkins for DevOps : Part IV (END)

    This is the Forth and Final Part of Analysis of Jenkins for DevOps. In this part, we have performed evaluation, outlook and conclusion around the topic.

  • Analysis of Jenkins for DevOps : Part III

    Jenkins, as a continuous integration tool, allows project teams to focus on their work by automating the build process, artifact management and deployment process. This is so well implemented that the Jenkins are no longer indispensable to DevOps today. In part II of analysis of Jenkins for DevOps, we discussed about integration into the project […]

  • Analysis of Jenkins for DevOps : Part II

    This is Part II of Analysis of Jenkins for DevOps. In this part, we have discussed the practical procedure of integration into the project cycle.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy