Skip to main content

Command Palette

Search for a command to run...

Day-22 [part-1]: Mastering Jenkins: A Step-by-Step Guide to CI/CD Automation 🛠️

Updated
2 min read
A

"I'm a 3rd-year Computer Engineering student at Marwadi University with skills in C++, web development (MERN stack), and DevOps tools like Kubernetes. I contribute to open-source projects and share tech knowledge on GitHub and LinkedIn. I'm learning cloud technologies and app deployment. As an Internshala Student Partner, I help others find jobs and courses." now currently focusing on #90DaysOfDevops

• What is Jenkins ?

  • Jenkins is an open source continuous integration-continuous delivery and deployment (CI/CD) automation software DevOps tool written in the Java programming language. It is used to implement CI/CD workflows, called pipelines.

  • Jenkins is a tool that is used for automation, and it is an open-source server that allows all the developers to build, test and deploy software. It works or runs on java as it is written in java. By using Jenkins we can make a continuous integration of projects(jobs) or end-to-endpoint automation.

  • Jenkins achieves Continuous Integration with the help of plugins. Plugins allow the integration of Various DevOps stages. If you want to integrate a particular tool, you need to install the plugins for that tool. For example Git, Maven 2 project, Amazon EC2, HTML publisher etc.

• Let us do discuss the necessity of this tool before going ahead to the procedural part for installation:

  • Nowadays, humans are becoming lazy😴 day by day so even having digital screens and just one click button in front of us then also need some automation.

  • Here, I’m referring to that part of automation where we need not have to look upon a process(here called a job) for completion and after it doing another job. For that, we have Jenkins with us.

• Jenkins installtion process

Click on this documentation Jenkins installation

First copy command of installation of java

Now

LTS releases prioritize stability and long-term support, making them ideal for production use, while Weekly releases offer the latest features and updates at the cost of potential instability.

First install java

systemctl status jenkins

Jenkins is successfully installed now question is how to access it ? Let’s move further how to access jenkins on web page basically jenkins runs on port 8080 so we have to open this port for my ip

Now go into EC2 > Security Group > inbound rules

Click on Edit inbound rules

Inport range oepn 8080 port

And click on my ip in source

Jenkins link :- public Ip of istance:8080

Now copy path and paste into ec2 ubuntu cli with this command

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

You will get Administrator password and copy it and paste on jenkins

Click on install suggested plugins

You have to Fill this given form

You can set jenkins URL also

Click on Start using Jenkins

Congratulations You are using jenkins using ec2 machine

Thankyou for reading !!!!!

90DaysOfDevops

Part 25 of 49

So In This Series I am following 90 DaysOfDevops challenge , what i will learn in my devops journey i will share with you with my blogs ,You will get blog on tools which used by devops engineer , example :- Linux,ansible,terraform,docker,etc

Up next

Day 21 : 🚀 Important Docker Interview Questions 🐳

Docker Interview Docker is a crucial topic for DevOps Engineer interviews, especially for freshers. Here are some essential questions to help you prepare and ace your Docker interviews: Questions What is the difference between an Image, Container, a...

More from this blog

A

Anand Raval

118 posts

Hello I am Anand Raval , i contributed my work in robotics(arduino uno) , fronted web devloper,competitive programming, now currently focusing on #90DaysOfDevops