使用Git失败的TFS构建服务

时间:2016-04-14 16:44:47

标签: git build-process tfs2015

2015年TFS与VS 2015 源代码控制:TFS Git项目 流程模板:默认git流程模板

有人能指出我正确的方向来解决我们遇到的问题。 xaml构建每次都失败了。它似乎无法从git项目中检索代码。

我在LAB中具有完全相同的服务器/ pc配置(从子网上的生产中克隆)。在实验室里,它正在发挥作用。

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)

1 个答案:

答案 0 :(得分:0)

检查您是否在源设置中使用存储库URL,并手动访问它以查看您是否可以打开此URL:

enter image description here