#Day22 : Getting Started with Jenkins ๐Ÿ˜ƒ

#Day22 : Getting Started with Jenkins ๐Ÿ˜ƒ

ยท

3 min read

Table of contents

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.

Note: By now Jenkins should be installed on your machine(as it was a part of previous tasks, if not follow https://hashnode.com/post/clfolv6fg000409mj8kswejpe

Tasks:

1. What you understood in Jenkin, write a small article in your own words (Don't copy from Internet Directly)

Jenkins is a tool used for building CI/CD pipelines. CI/CD stands for Continuous integration and Continuous deployment. It consists of automating the integration process by completing the code integration stages of the SDLC that are Planning, Design and Development. The later part includes completing the SDLC by also automating the Testing and deployment part using different tools like docker and Kubernetes and all this can be done without even a single click. The code on Github can be directly linked to Jenkins using Webhook and the changes made on Github directly trigger a new build on Jenkins to the agent server. Thus it keeps the process of deployment continuous without a single click.

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

Once Jenkins is setup, go to Dashboard

In dashboard, select new item,

Enter name as First Jenkins project and select freestyle

Give description and select none in source code management

In build steps, select execute shell and type echo "Hello World"

Now go to dashboard > my first project and click build

Go to build#1 in left pane

Go to console output, you will see the command running!

ย