Set Up Git on Jenkins

To set up Git on Jenkins, you must be assigned the Jenkins Admin role. Git must also be installed on the computer running Jenkins. If the plugin is already installed and configured, ignore this section.
  1. Log on to Jenkins using the administrator credentials.
  2. From the links on the left side of the page, click Manage Jenkins.
  3. To install the Git plugin, click Manage Plugins.
  4. In the Available tab, search for Git. Under Source Code Management, select the plugin's check box and click Download now and install after restart or Install without restart.
  5. Wait for the plugin to install.
  6. Restart Jenkins.
  7. From the links on the left side of the page, click Manage Jenkins.
  8. Click Global Tool Configuration.
  9. In Git, enter the local path of the Git executable.
  10. Click Save.