Jaimin Vitthalapara
Jaimin Vitthalapara

Reputation: 1

Jenkins SCM Pipeline: "Selected Git installation does not exist" Error with Valid Path

I have created a project, uploaded it to GitHub, and I want to fetch and run it using a pipeline SCM in Jenkins. I have already configured Git installation in Jenkins under "Manage Jenkins" -> "Global Tool Configuration," and I have provided the Jenkins VM path.

However, I am encountering the following error when building the project:

Selected Git installation does not exist. Using Default.
The recommended git tool is: NONE.

Here are the details:

  1. I checked the Git path on the Jenkins VM using:
root@ubuntu-focal:~# which git  
/usr/bin/git  
  1. If I provide the Windows Git path, I get an error. The Git path on my Windows machine is:
C:\Users\User>where git  
C:\Program Files\Git\bin\git.exe  

I have configured the pipeline SCM with the correct GitHub repository URL and set the GitHub credentials to use the token for authentication. The repository URL and credentials are specified in the Jenkinsfile.

I have set the Jenkins Git path to /usr/bin/git, but the error persists. Can anyone help me resolve this issue? What should I do to properly configure Git in Jenkins to avoid this error?

Getting Error while providing Windows Git Path, already set ENV variable on system

Try to install git on Jenkins VM and provide the path

Getting Error on Execution Time

Installed Plugins

-Then, I switched to the Jenkins VM Git path (/usr/bin/git), as it’s the Git installation on the machine running Jenkins. However, the error still persists.

Selected Git installation does not exist. Using Default.
The recommended git tool is: NONE.

The Git installation should be correctly recognized, and the pipeline should be able to fetch the GitHub repository without any issues.

Upvotes: 0

Views: 17

Answers (0)

Related Questions