git lfs呼叫失败的App Center

时间:2018-08-24 19:54:19

标签: visual-studio-app-center

由于git lfs,我的构建步骤在“ App Center”中失败。事情是在我们的常规版本(甚至Jenkins)中,我们从不使用git lfs,而当我们使用App Center时,我认为我们不得不使用后来使用lfs的代理。

我的问题是 -我们如何防止代理调用git lfs? -如果上一个问题的答案为“否”,是否有办法指定我们自己的git命令来提取源代码?

Starting Hosted Agent
##[section]Starting: Job
##[section]Starting: Initialize job
Current agent version: '2.138.6'

:::::

##[command]git lfs fetch origin e5d5057ddcf11401b8a3b17fcc32e1601a8909a36c
fetch: Fetching reference e5d5057ddcf11401b8a3b17fcc32e1601a8909a36c
Could not scan for Git LFS files

重试一堆后,这是App Center中显示的错误消息

Client IP addresses:
10.79.0.250
fe80::5028:c1aa:122:c80f
##[error]System.InvalidOperationException: Git lfs fetch failed with exit code: 2. Git lfs logs returned with exit code: 0.
   at Agent.Plugins.Repository.GitSourceProvider.<GetSourceAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Agent.Plugins.Repository.CheckoutTask.<RunAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Agent.PluginHost.Program.Main(String[] args)

0 个答案:

没有答案