Github Integration with Jenkins Server.

In this article, I will demonstrate how to install Git and integrate it with the Jenkins server. Here I am using the AWS EC2 machine (Amazon OS ) pre-installed with Jenkins server.

For installation Jenkins server you can refer my previous post.

Jenkins installation

Git installation:

To install Git on the machine execute below command.

yum install -y git

To confirm the installation execute git version command.

# git --version

git version 2.14.5

Git installation is completed now we have to enable Jenkins plugin for Github.

 

Github plugin installation

Login to your Jenkins server and click on “Manage Jenkins” present on the left side panel.

Click on “Available” to list all available plugin. On search box enter Github and hit enter.

 

Select the Github plugin and hit “Install without restart button”. Then you can see a lot of depended plugins are started installing.

Once the installation is done, go back to the Jenkins home page and click on “Manage Jenkins”. On the next page click on “Global Tool Configuration” to configure Github. There you can see an option to add Git, and by default “Path to Git executable” is already set. Click the Save button to save it.

Github plugin for Jenkins has completed.

 

Leave a Reply

Your email address will not be published. Required fields are marked *