Reputation: 1
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:
root@ubuntu-focal:~# which git
/usr/bin/git
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
I tried configuring the Git installation path in Jenkins under Manage Jenkins → Global Tool Configuration using the Git path on the Jenkins VM (/usr/bin/git).
I tried setting the Windows Git path (C:\Program Files\Git\bin\git.exe), but encountered an error related to the Windows Git configuration.
-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