Streamline Jenkins Installation on Ubuntu with Just 6 Commands
These six commands serve as your roadmap, guiding you through each step precisely and clearly.
So, grab your terminal, and let’s dive into this hassle-free Jenkins installation on Ubuntu. Whether you’re a seasoned developer or just starting your journey in the world of CI/CD, this guide promises to simplify the process and get you up and running with Jenkins in no time. Let’s get started!
Prerequisites
- Ubuntu 22.04 server (I am using AWS EC2 t2.micro instance)
- Should have at least 1 GB of RAM and 1vCPU
- Oracle JDK 11
Java JDK 11 Installation:
$ sudo apt update
$ java -version
* if its not installed then use the following commands to install
$ sudo apt install openjdk-11-jre-headless
$ sudo apt install default-jdk
$ java -version
* Now you should have the JDK 11 installed on your ubuntu server
Jenkins Installation commands:
$ curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null
$ 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
$ sudo apt update
$ sudo apt install jenkins
$ systemctl status jenkins.service
Note: I have added some supporting commands above with the 6 commands.
Now access the Jenkins Dashboard on browser:
Install suggested plugins:
Setup first admin user:
Now login with an admin user account:
Conclusion:
Congratulations! You have successfully installed the Jenkins on Ubuntu 22.04 Server :)
I hope you enjoyed reading this article, please feel free to contact me Syedusmanahmad if you have any questions.
Please feel free to write @ engr.syedusmanahmad@gmail.com | Linkedin https://www.linkedin.com/in/engrusman-ahmad for any queries on AWS/DevOps & stay tuned for the next write-up.
If this post was helpful, please click the clap 👏 button below a few times to show your support for the author 👇