1

I am trying to execute the following command from jenkins

git config --global url.https://github.com/.insteadOf git://github.com/

But i am getting the following error

error: could not lock config file %USERPROFILE%/.gitconfig: No such file or directory

Jenkins configuration: Slave: Windows machine, Build step: Execute shell

I tried the following: Changed the file permission, Deleted the file and tried, Manually edited the .gitconfig to have the expected configuraiton.

I am really not sure what is causing this error. Is this because of the path (%USERPROFILE%)?

VJohn
  • 493
  • 1
  • 14
  • 23

1 Answers1

0

First, check this is not related to JENKINS-21376:

"Force polling using workspace" Allows my poll to suceed and the build to be triggered automatically.

Check your HOME, the presence of a special character in the path or a process locking .gitconfig.lock

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250