简体   繁体   English

Jenkins无法访问Azure Ubuntu VM上的Git存储库

[英]Jenkins cannot access Git repository on Azure Ubuntu VM

I get the following error when I try to connect to my git repository. 当我尝试连接到我的git存储库时出现以下错误。

在此输入图像描述

This is my credential that i'm using. 这是我正在使用的凭证。 Any pointers to what I'm doing wrong? 什么指向我做错了什么? 在此输入图像描述

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM