首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:克隆远程存储库‘remote’时出错-不同的存储库

错误:克隆远程存储库‘remote’时出错-不同的存储库
EN

Stack Overflow用户
提问于 2016-02-11 23:38:10
回答 1查看 587关注 0票数 0

在Jenkins中执行Build Now后开始获取此错误:

由用户匿名在工作区的Ranorex上远程构建启动

代码语言:javascript
复制
d:\Workspaces\Ranorex

Deleting project workspace... done

Cloning the remote Git repository Cloning repository https://365agile.visualstudio.com/DefaultCollection/365Agile/_git/365Agile.Ranorex
 > c:\git\bin\git.exe init d:\Workspaces\Ranorex # timeout=10 Fetching upstream changes from https://365agile.visualstudio.com/DefaultCollection/365Agile/_git/365Agile.Ranorex
 > c:\git\bin\git.exe --version # timeout=10 using .gitcredentials to set credentials
 > c:\git\bin\git.exe config --local credential.helper store --file=\"C:\Users\JENKIN~1.SER\AppData\Local\Temp\git199499054612009523.credentials\"
# timeout=10
 > c:\git\bin\git.exe -c core.askpass=true fetch --tags --progress https://365agile.visualstudio.com/DefaultCollection/365Agile/_git/365Agile.Ranorex
+refs/heads/*:refs/remotes/origin/* # timeout=15
 > c:\git\bin\git.exe config --local --remove-section credential # timeout=10 ERROR: Error cloning remote repo 'origin' ERROR: Error cloning remote repo 'origin' Finished: FAILURE

我昨天确实有一个成功的构建:

代码语言:javascript
复制
> d:\Workspaces\Ranorex>exit 0  Finished: SUCCESS

正在测试的应用程序有一些小的更改,但配置没有更改。

我使用的是MS Visual Studio GIT。

你知道可能出了什么问题吗?

EN

回答 1

Stack Overflow用户

发布于 2016-02-12 00:18:14

默认情况下,Jenkins使用'jenkins‘用户执行作业。您需要为这个jenkins用户创建/生成SSH密钥并添加它。

正如您所说的,您是在匿名用户的帮助下开始此作业的。你昨天是用同一个用户运行的吗?从同一个地方?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35343623

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档