Continuous Integration and Deployment— Integrating Jenkins with Github

Devansh Markan
2 min readOct 15, 2020

Hello! In this short and simple tutorial, I am going to tell you that how can you integrate Jenkins with Github.

So, go to the directory where your jenkins.war file is present. Start the Jenkins service using the java -jar jenkins.war command in the command prompt in administrator mode.

It will look like this:

Now, Go to the Jenkins dashboard at localhost:8080 and Jenkins will open and will ask for your username and password.

All you have to do is : 1. Click on the new item option

2. Select the freestyle project option

3. Give a name to the project and press save.

It will look like this:

After pressing enter, a configuration dashboard will open and there comes the major part.

Click on the Source Code Management tab to add the Github repository and thereby, integrate Jenkins and Github.

Follow the below steps:

In the Source Code Management Section, select Git as your option.

Visit the repository where you saved your project and copy the location of your github repository.

Give the repository location in the specified placeholder

Now, click save and DONE! You will be redirected to a dashboard like this and this shows that you have integrated your Github project with Jenkins.

Congrats on integrating Github with your Jenkins. More tutorials coming very soon. Stay Tuned.

--

--

Devansh Markan

Tech-enthusiast and looking for learning new technologies and writing technical blogs here.