0 votes
in Jenkins by
Explain the process to integrate Git with Jenkins?

1 Answer

0 votes
by

Here are the steps to integrate Git with Jenkins:

  1. Create a new Jenkins job and open the Jenkins dashboard.
  2. Enter the project name (in the item name) and select the job type. Click on OK.
  3. Enter the project information. Go to the ‘Source Code Management’ tab. If the Git plugin is already installed in Jenkins, you will see the option ‘Git’.
  4. If you cannot see it, then you should reinstall the plugins – GitHub plugin, GitHub Branch Source plugin, GitHub API plugin, Gitclient plugin etc.
  5. After installing the plugins, restart Jenkins to reflect the changes.
  6. To pull the code from GitHub, enter the repository URL. If you do not have Git installed in your machine, install it. To check if Git is installed, type Git in cmd (command prompt) and you should see various options like usage, version, help etc.

Related questions

0 votes
asked Jan 30, 2020 in DevOps by rajeshsharma
0 votes
asked Apr 29, 2021 in Jenkins by SakshiSharma
...