[英]Jenkins cannot access Git repository on Azure Ubuntu VM
First, make sure to use the latest version of the Git SCM plugin, in order to avoid issue like JENKINS-20879 . 首先,请确保使用最新版本的Git SCM插件,以避免像JENKINS-20879这样的问题 。
That issue also illustrates how to register a private key protected by a passphrase. 该问题还说明了如何注册受密码保护的私钥。 In your case, make sure you don't have a passphrase (or your key would not be properly registered in Jenkins, as in this answer ) 在您的情况下,请确保您没有密码(或者您的密钥将无法在Jenkins中正确注册,如此答案中所示 )
Make sure to test it outside of Jenkins 确保在Jenkins之外进行测试
ssh -Tv -i /path/to/id_rsa git@ip.address
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.