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

后端 未结 3 1394
轻奢々
轻奢々 2021-01-05 03:50

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 pro

3条回答
  •  长发绾君心
    2021-01-05 04:12

    Assuming you've installed Windows Git on Windows slave, it comes with ssh-agent binary (e.g. C:\Program Files\Git\usr\bin). Try adding its path to system variable PATH.


    Otherwise untick SSH Agent and choose the credentials by selecting Credentials from dropdown in Source Code Management section.


    Another way is to generate personal API token (OAuth) for that GitHub user and include that along with your repository address, e.g.

    git clone https://4UTHT0KEN@github.com/foo/bar
    

提交回复
热议问题