Wednesday, November 29, 2017

Jenkins issue with fetching GitHub Data

To operate GitHub based source code repositories in Jenkins.All you need to install the Git Plugin.
And below configurations are required.
1. Goto Manage Jenkins → Global Tool configuration. → Scroll to Git section and keep the Name as is and “Path to Git Location as just git.exe“. As we are going to keep the git.exe folder to the environment variable path.
2. While installing Git on your machine, don’t forget to uncheck the feature “Git credential manager”.
3. Once it is done create a free style project and add the github url to the source code management section in job configuration page by selecting the radio button git there.
jenkisn_1
Give values for below options.
Jenkins_2
When you try to build the project, you may get issues like timeout while fetching the github repo.
Like in the below post: Stackoverflow
The issue is because the git.exe is trying to access git credential manager for the credential support.All you need to do is to uninstall and reinstall again by uncheking the git credential manager sub feature.

No comments:

Post a Comment