rpdharanidhar / devops-task01

0 stars 0 forks source link

git - "The recommended git tool is: NONE" issue in jenkinsd pipeline integration #1

Open rpdharanidhar opened 9 months ago

rpdharanidhar commented 9 months ago

Running on Jenkins in C:\ProgramData\Jenkins.jenkins\workspace\test01\jenkinsdemo1 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) (hide) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential polar-git-credentials

C:\Program Files\Git\mingw64\bin\git.exe rev-parse --resolve-git-dir C:\ProgramData\Jenkins.jenkins\workspace\test01\jenkinsdemo1.git # timeout=10 Fetching changes from the remote Git repository C:\Program Files\Git\mingw64\bin\git.exe config remote.origin.url https://github.com/rpdharanidhar/devops-automation.git # timeout=10 Fetching upstream changes from https://github.com/rpdharanidhar/devops-automation.git C:\Program Files\Git\mingw64\bin\git.exe --version # timeout=10 git --version # 'git version 2.44.0.windows.1' using GIT_ASKPASS to set credentials C:\Program Files\Git\mingw64\bin\git.exe fetch --tags --force --progress -- https://github.com/rpdharanidhar/devops-automation.git +refs/heads/:refs/remotes/origin/ # timeout=10 C:\Program Files\Git\mingw64\bin\git.exe rev-parse "refs/remotes/origin/main^{commit}" # timeout=10 Checking out Revision f6e2bceccc029add33402b143f295e28b17a0918 (refs/remotes/origin/main) C:\Program Files\Git\mingw64\bin\git.exe config core.sparsecheckout # timeout=10 C:\Program Files\Git\mingw64\bin\git.exe checkout -f f6e2bceccc029add33402b143f295e28b17a0918 # timeout=10 Commit message: "jenkins updated" C:\Program Files\Git\mingw64\bin\git.exe rev-list --no-walk f6e2bceccc029add33402b143f295e28b17a0918 # timeout=10

image

rpdharanidhar commented 9 months ago

I was also getting the same error, Because while configuring the Job in jenkins, I had given my commands in "Execute shell" instead of "Execute Windows batch command" in Build steps screen. If Windows OS, then the commands to be given in "Execute Windows batch command".