Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Jenkins error message "could not find a suitable ssh-agent provider"?

I'm using Jenkins on Win7 and i've installed tomcat for ssh-agent plugin. And I could clone my GitLab project via git bash via ssh.
But if I build the project by Jenkins, it always says :

[ssh-agent] Using credentials IliptonChen(APRTest)
[ssh-agent] Looking for ssh-agent implementation...
[ssh-agent] FATAL: Could not find a suitable ssh-agent provider
FATAL:[ssh-agent] Unable to start agent

The full output text is here

Did I do anything wrong?

like image 519
Chen Lung Chin Avatar asked Jan 25 '14 07:01

Chen Lung Chin


1 Answers

Check the version of your ssh-agent used by Jenkins.
This bug (for linux, but could apply to Windows too) reports (10 days ago, January 2014) this very same error message:
"JENKINS-20276: Native Library Error after upgrading ssh-agent from 1.3 to 1.4".

Downgrading to 1.3 resolves the issue.


Update 2019, five years later: as commented, this should be fixed now.

ssh-agent.exe is part of a Git for Windows distribution

D:\git\git>where ssh-agent.exe
D:\prgs\gits\current\usr\bin\ssh-agent.exe

(provided path/to/git/usr/bin is first in the %PATH% used by Jenkins)

like image 73
VonC Avatar answered Sep 17 '22 00:09

VonC