Table of contents
- ABOUT JENKINS-
- ADVANTAGES OF JENKINS-
- Setup & Install Jenkins in AWS EC2 Ubuntu Instance-
- Launch Instance
- Connect to the EC2 Instance connect
- Once inside the terminal, copy the following commands
- Go to https://pkg.jenkins.io/
- This will open a page -
- Once installed Jenkins, copy the following commands
- After editing the inbound rules 8080(Anywhere), we can now copy the public IP and open it in our preferred browser.
- copy the password by runing cat /var/lib/jenkins/initialAdmin..........
- paste it then your jenkins is setup and ready to go.
- Final Thoughts
Table of contents
ABOUT JENKINS-
Jenkins is an open-source automation server written in Java that runs on Windows, macOS, and other UNIX-like operating systems. It is free, community- supported, and a popular first-choice tool for Continuous Integration (CI).
Jenkins automates the entire software development lifecycle.
Jenkins was originally developed by Sun Microsystems in 2004 under the name Hudson.
It can run on any major platform without any compatibility issues.
Whenever developers write code, it is integrated with the code from other developers, and the combined codebase is then built, tested, and deployed. This process is known as Continuous Integration and Continuous Deployment (CI/CD). Jenkins plays a crucial role in automating and streamlining this process.
ADVANTAGES OF JENKINS-
We can also deploy with Jenkins.
You can use your community plugin
Jenkins is not just a tool; it is a framework. i.e., you can do whatever you want, you just need plugins.
Jenkins can also behave as one server.
We can attach nodes (slaves) to Jenkins (Master).
It has a lot of plugins available.
Setup & Install Jenkins in AWS EC2 Ubuntu Instance-
Launch Instance
a. Ubuntu 24.04 LTS (free tier)
b. create key pair
c. Enable Security Group-
HTTP
HTTPS
SSH
Custom TCP (Port- 8080 [served for Jenkins])
Connect to the EC2 Instance connect
Once inside the terminal, copy the following commands
sudo apt update
Go to pkg.jenkins.io
Select this-
This will open a page -
-
Once installed Jenkins, copy the following commands
sudo systemctl start Jenkins sudo systemctl enable Jenkins sudo systemctl status Jenkins
After editing the inbound rules 8080(Anywhere), we can now copy the public IP and open it in our preferred browser.
<Public_Ip>:8080
copy the password by runing cat /var/lib/jenkins/initialAdmin..........
paste it then your jenkins is setup and ready to go.
Final Thoughts
Thank you for following along with this step-by-step guide on how to install Jenkins on Ubuntu! ๐ I hope this tutorial made the process crystal clear and helped you set up Jenkins smoothly on your own system. ๐โจ
If you have any questions, run into issues, or just want to share your experience, feel free to drop a comment below. ๐ฌ๐ Iโm here to help and would love to hear how your setup went! ๐
Happy coding! ๐จโ๐ป๐ฉโ๐ป Keep building, keep automating! ๐ก๐ง