I’m running into a weird issue with my Jenkins build server on Ubuntu. Git version is 1.6.4 and I can pull from my private GitHub repo just fine, but when I try to push tags back after a successful build, it throws errors.
Here’s what I’m seeing:
# sudo -u jenkins git push --tags origin
XML parsing error: unexpected token
error: Error: WebDAV locking not supported on https://github.com/mycompany/myproject/
error: some refs failed to push to 'https://github.com/mycompany/myproject'
The strange thing is that SSH authentication works perfectly. When I run “ssh -v [email protected]” as the jenkins user, it connects without issues. That’s why pulling from the private repository works fine too.
It looks like git is trying to use HTTPS/WebDAV for the push operation instead of SSH. My git config matches exactly what I have for my personal user account, which can push tags successfully. Why would git choose HTTPS for pushing when SSH is properly configured?