# Day-22 : Getting Started with Jenkins

Before getting to know about Jenkins first we will get to know continuous integration and continuous delivery.

**Continuous Integration**: Continuous Integration (CI) is a development practice where developers integrate code into a shared repository frequently, preferably several times a day. Each integration can then be verified by an automated build and automated tests. While automated testing is not strictly part of CI it is typically implied.

**Continuous delivery:** Continuous Delivery (CD) is a software development practice that involves automatically building, testing, and deploying software changes to production environments safely and reliably. The goal of CD is to enable teams to release new features, updates, and bug fixes more frequently and reliably.

## 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.
    
    ![Jenkins with its Industry use cases | by Rutujakonde | Medium](https://miro.medium.com/v2/resize:fit:1400/0*FjtALwUaH8tTB4bY.gif align="left")
    

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

First we need to update the server and then we need to install the java in the sever because jenkins works on the basis of java.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683160465041/d7a9e3cd-7c20-43ad-a02a-c12f5cd11453.png align="center")

You can check the version of java.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683160530948/753f97f1-67f3-443d-8b42-ee54cc0513cf.png align="center")

To install Jenkins we need other necessary commands that need to run.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683160849412/980d4455-59c4-4325-ab34-bcc6bd6a2aa3.png align="center")

Then install the Jenkins by using apt-get

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683160870711/cb6c9efe-964f-444e-8cdc-2b26f8e8b59a.png align="center")

Enable, start and get the status of the Jenkins.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683160930019/1f6ae981-0476-4aec-93ef-3ece69ed3283.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683160953908/97a2c4bf-9d6b-4130-b706-cb3c480cd87c.png align="center")

Now, to navigate copy the URL of the server with port and then navigate to the path for admin password.

As you can see that Jenkins has been installed in the server.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683161196976/f17b3859-6df8-423f-98c4-22c49b2ab11d.png align="center")

To get the Administrator password

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683161725069/79f8b39f-d71f-47e5-b3b1-ed0539cb7932.png align="center")

Now install the suggested plugins

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683161768982/8496d460-beb7-4125-ab7e-3ffb4b137eaf.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683161949457/a6a82c89-3816-4fe5-9895-b40d4d9b0bd5.png align="center")

Now, you need to fill the admin user details:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683161992912/386e1221-a6b2-4a22-9efb-4d4f8010409d.png align="center")

Login to the URL.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162174479/d4d735f8-ae60-45ca-85a3-69707a340933.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162225902/44f4ce1b-c40d-4ee0-9e8f-ab61530fe40a.png align="center")

## **Task:**

**Create a freestyle pipeline to print "Hello World!!"**

Click on a new item

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162330620/9f6aae3e-bec3-4da3-9a3c-a53afc88c372.png align="center")

Give any name and click on Freestyle project and click on OK

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162462747/1779ee0a-a8a6-4249-b096-1463ee031215.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162597913/96214841-25f6-48a7-bceb-df9c2a973f11.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162633495/07f3cd7d-ab15-4413-bab8-ef73d58f6674.png align="center")

Click om Build Now and then go to Console Output you can check project.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683162704083/5273b5cb-54f7-4fdd-b144-142e96a7ece6.png align="center")

Finally, the Project is completed.

Happy learning :)

Mohammed Muqafamuddin.
