1
votes

TFS 2015 with VS 2015 Source control: TFS Git project Process template: default git process template

Can someone point me in the right direction to solve the problem we have. The xaml build are failing everytime. It does not seems to be able to retrieve the code from the git project.

I have the exact same server / pc config in a LAB (clone from production on a subnetwork). 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)
1
The error looks like a 404, I'd double check the repo paths in the build definition.DaveShaw

1 Answers

0
votes

Check you are using Repository URL in Source Settings, and access it manually to see whether you can open this URL:

enter image description here