# Day-22: Getting Started with Jenkins 😃

## 📌 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
    

## 📌 Task-1 **What you understood in Jenkin, Write a small article in your own words**

Jenkins is a continuous integration and continuous deployment tool that automates the workflow of application deployment.

Jenkins has various stages and every stage has its own work which is to be a bunch of tasks that need to be done on a system, like checking for updates, running tests, or making new software versions. Jenkins can do these tasks automatically, saving people time and ensuring things work correctly every time.

It's like a scheduler that knows when to start the tasks,it could be at specific times or when something happens, like new code being added. If many people are working on a project, Jenkins helps them all stay on the same page and make sure everything fits together smoothly.

## 📌 Task 2 **Create a freestyle pipeline to print "Hello World!!**

```basic
Open the jenkins dashboard in browser  url -  http://<jenkins_server_ip:8080>

jenkins run on port 8080 
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692786042557/d3fde6c3-301e-4540-94df-1fda1a232795.png align="center")

```basic
Then go to new item and in that click on freestyle project and then ok
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692786298050/e6cd6389-c880-4fe7-a270-ff597f1a3311.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692786352041/0f9013b5-4ad2-4071-a701-59257601b12d.png align="center")

```basic
Then go to build steps and select execute shell
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692786450066/dea2c0a1-93d5-47e0-8b6e-b2071819eea2.png align="center")

```basic
Then add command that you want execute and save apply
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692787094679/4d6a16b8-4bc5-4c06-8611-3ad1ebe7a407.png align="center")

```basic
Click on  build now to run the freestyle project
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692786640683/e2fb34eb-db66-467f-9868-8f334a4289a1.png align="center")

```basic
After building the job go to the job and in that open console output 
, printed Hello World!! output.
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692786733042/60b8a597-cd69-4a17-9072-9f6de6332af7.png align="center")
