Skip to main content

Command Palette

Search for a command to run...

Day-22 : Getting Started with Jenkins πŸ˜ƒ

Published
β€’3 min readβ€’View as Markdown

What is Jenkins?

Jenkins is an open source Tools. That focuses on completing sets of jobs. That is given to it. Whatever we have given job to Jenkins it will automate.Automation software DevOps tools written in Java programming language. it is used to implement CI/CD workflows called the pipelines.

Now let us discuss with the help of below steps:-

Task-1

A) Install the Jenkins, Java & Java Version. I will install the jenkins on AWS Ec2 Instance.

B) Allow port 8080 in our Security group.

No alt text provided for this image

Java Installl and Version check commands Diagram.

After the installation Enable,start and Status of Jenkins.

No alt text provided for this image

After the installation Enable,start and Status of Jenkins.

No alt text provided for this image

Allow port 8080 in our Security group. Diagram.

3 Now hit the ip address:8080 to check jenkins dashboard.

No alt text provided for this image

Now hit the ip address:8080 to check jenkins dashboard Digram.

4 Now Unlock the jenkins Administrator password with the help of Following Syntax:

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

No alt text provided for this image

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

5 After enter the Jenkins Adminstrator password your jenkins login are enabled and asked for the

A) Install suggest Plugin

B) Select Plugins to install

Select the Install suggest plugin.

After select the suggest plugin jenkins install will be start and after it wil ask for the user name,password,Full name and Email to enter the jenkins dashboard which are show in below 2 Diagrams.

No alt text provided for this image

user name,password,Full name and Email Digram

No alt text provided for this image

Jenkins are ready for Work DIagram.

6 Click on the "New item" button on the left sidebar.

No alt text provided for this image

Click on the "New item" button on the left sidebar Diagram.

7 Give your project name, i will give "demo-pipeline" and select "freestyle project"as the project type.

No alt text provided for this image

i will give "demo-pipeline" and select "freestyle Diagram.

8 In the configuration section, scroll down to the "Build" section and add an "Execute shell" build step.

No alt text provided for this image

In the configuration section, scroll down to the "Build" section and add an "Execute shell" build step.

No alt text provided for this image

In the configuration section, scroll down to the "Build" section and add an "Execute shell" build step.

9 In the command field, enter the command to print "Hello World", such as echo "Hello World!!".

No alt text provided for this image

Hello World", such as echo "Hello World!!". Diagram

10 Click on the "Save" button at the bottom of the page to create the project.

11 Once the project is created, click on the "Build Now" link to run the project.

No alt text provided for this image

click on the "Build Now" link to run the project. Diagram.

12 Now check the output for "Hello world" message.

No alt text provided for this image

Now check the output for "Hello world" message.

Thank you for reading the article !! stay connected.

Happy Learning

Next Topic:

Day 21 Task: Jenkins Freestyle Project for the DevOps Engineers.

Like

Comment

Share

More from this blog

Untitled Publication

48 posts