Day 22 Getting Started with Jenkins πŸ˜ƒ

Day 22 Getting Started with Jenkins πŸ˜ƒ

Β·

3 min read

Day 22 of #90daysofdevops

Hey Techies! Welcome to this blog

In this blog, we are going to start Jenkins Journey.

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.

Tasks:

1. What you understood in Jenkin, write a small article in your own words?

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.

It manages and controls several stages of the software delivery process, including build, documentation, automated testing, packaging, and static code analysis. Jenkins is a highly popular DevOps tool used by thousands of development teams.

  1. Create a freestyle pipeline to print "Hello World!!

For creating a freestyle pipeline in Jenkins

First, we have to install Jenkins

Take an EC2 server on AWS then install Jenkins from Install Jenkins

Install Java first

Then Jenkins

To Check if Jenkins is running or not

sudo systemctl status jenkins

Let's start Jenkins, before open port 8080 on AWS in security groups as Jenkins listens to port 8080

Now your Jenkins is up and running on yourpublicip:8080

Now as per our task, we have to create a freestyle pipeline.

Create a New Jenkins Job:

    • Log in to your Jenkins server.

      • Click on "New Item" to create a new job.

      • Name your job (e.g., "Hello World").

      • Select the "Freestyle project" option.

now we will add a description to our Freestyle Project.

  • Save And Build

  • Click "Save" to save your job configuration.

  • Click "Build Now" to trigger your pipeline.

    Now it's time to build our project using CI/CD on Jenkins.

View the Output

Once the build is complete, you can check the console output to see "Hello World!!" printed.

That's it! You've just created your first Jenkins freestyle pipeline. πŸŽ‰

Thank you so much for taking the time to read till the end! Hope you found this blog informative and helpful.

Feel free to explore more of my content, and don't hesitate to reach out if need any assistance from me or in case of you have any questions.

Happy Learning!

~kritika :)

Connect with me: linkedin.com/in/kritikashaw

Β