Configure Git plugin on Jenkins

Git is one of the most popular tools for version control systems. you can pull code from git repositories using Jenkins if you use the GitHub plugin.


  1. Jenkins server

Using My Article, you can set up Jenkins Server on a Red-hat Linux EC2 instance.

SSH to your instance and run these two commands to get started.

hostname  jenkins
sudo su -

Install Git on the Jenkins server

  1. Install git packages on the Jenkins server
yum install git -y

Setup Git on jenkins console

  • Install git plugin without restart
  • Manage Jenkins > Jenkins Plugins > available > github
  • Configure git path
  • Manage Jenkins > Global Tool Configuration > git

In Next Article You will learn How to Setup Maven.