简体   繁体   English

使用Git失败的TFS构建服务

[英]TFS build service with Git failing

TFS 2015 with VS 2015 Source control: TFS Git project Process template: default git process template TFS 2015与VS 2015源代码控制:TFS Git项目流程模板:默认的git流程模板

Can someone point me in the right direction to solve the problem we have. 有人能指出我正确的方向来解决我们遇到的问题。 The xaml build are failing everytime. xaml构建每次都失败了。 It does not seems to be able to retrieve the code from the git project. 它似乎无法从git项目中检索代码。

I have the exact same server / pc config in a LAB (clone from production on a subnetwork). 我在LAB中具有完全相同的服务器/ pc配置(从子网上的生产中克隆)。 In the lab, it's working. 在实验室里,它正在发挥作用。

Error:
Exception Message: Response status code does not indicate success: 404 (Not Found). (type LibGit2SharpException)Exception Data Dictionary:libgit2.code = -1libgit2.category = 12
Exception Stack Trace: Server stack trace: 
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at Microsoft.TeamFoundation.Build.Activities.Git.GitPull.GitClone.GetRepository(String repositoryUrl, String workingFolder, Boolean checkoutSubmodules)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)Exception rethrown at [0]: 
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Func`4.EndInvoke(IAsyncResult result)
at Microsoft.TeamFoundation.Build.Activities.Git.GitPull.GitRepositoryBase.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Check you are using Repository URL in Source Settings, and access it manually to see whether you can open this URL: 检查您是否在源设置中使用存储库URL,并手动访问它以查看是否可以打开此URL:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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