I'm trying to upgrade our Jenkins to 2, but coming accross a problem with 
git authentication. I've got Git credentials loaded and they currently 
work, but when I upgrade the plugin from 1.19.6 to 2.1.0, all jobs that use 
Git for SCM fail with the same error message.  As soon as I downgrade the 
plugin, they work again. I've searched everywhere I can for an answer but 
don't seem to be able to find anything.

Where the jobs succeed the output suggests that .gitcredentials is being 
used to authenitcate, but with the new plugin GIT_ASKPASS is being used. 
Not sure if this is related but I suspect it is. There's a full explanation 
here:

http://serverfault.com/questions/823152/how-do-i-change-jenkins-git-plugin-from-using-git-askpass-to-gitcredentials

But the relevant output is this:

08:18:40  > C:\Program Files\Git\cmd\git.exe init C:\Program Files (x86)\
Jenkins\workspace\project # timeout=10
08:18:40 Fetching upstream changes from https:
//github.com/mycompany/myrepo.git
08:18:40  > C:\Program Files\Git\cmd\git.exe --version # timeout=10
08:18:40 using GIT_ASKPASS to set credentials 
08:18:40  > C:\Program Files\Git\cmd\git.exe fetch --tags --progress 
https://github.com/mycompany/myrepo.git 
+refs/heads/*:refs/remotes/origin/*
08:18:41 ERROR: Error cloning remote repo 'origin'
08:18:41 hudson.plugins.git.GitException: Command "C:\Program 
Files\Git\cmd\git.exe fetch --tags --progress 
https://github.com/mycompany/myrepo.git +refs/heads/*:refs/remotes/origin/*" 
returned status code 128:
08:18:41 stdout: 
08:18:41 stderr: '*dds23' is not recognized as an internal or external 
command,
08:18:41 operable program or batch file.
08:18:41 error: unable to read askpass response from 
'C:\Windows\TEMP\pass6274847349411211542.bat'
08:18:41 bash: /dev/tty: No such device or address
08:18:41 error: failed to execute prompt script (exit code 1)
08:18:41 fatal: could not read Password for 'https://u...@github.com': No 
error

Has anyone else come across this issue?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8868d01f-c2d0-4675-a265-cf2873dce009%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to