我正在尝试通过TFS 2013 Update 4 - 软件版本12.0.31101.0(Tfs2013.Update4)构建一个git项目。使用此服务器在TFSVC下构建项目没有问题,但Git项目无法构建。
我使用以下配置设置了构建定义(使用默认的GitTemplate.12.xaml
模板):
这是我从构建中获得的日志(失败的总时间是1秒):
Update build number
Run on agent (reserved build agent Chutzpah Controller)
Initialize environment
Pull sources from Git repo
Exception Message: Response status code does not indicate success: 404 (Not Found). (type LibGit2SharpException)
Exception Data Dictionary:
libgit2.code = -1
libgit2.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.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
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)
我认为它可能是它正在点击的网址,但是当您取消选中Get sources from a Team Foundation Git repository
时,它从“源设置”标签生成的网址就可以了:
http://teamsource:8080/tfs/defaultcollection/Live%20Link%20Dashboard/_git/Live%20Link%20Dashboard
那么我认为这是我从流程模板的Build
部分到解决方案文件的路径 - 因此我尝试了以下值,但没有一个工作:
\LiveLinkDashboard.sln
$\LiveLinkDashboard.sln
/LiveLinkDashboard.sln
$/LiveLinkDashboard.sln
我在这里不知所措 - 有没有人有任何建议或想法?
答案 0 :(得分:0)
答案 1 :(得分:0)
问题如下:TFS 2013 git CI build definition points to incorrect address
微软的解决方案是:
Visual Studio 2013中已修复此问题。您可以安装 Visual Studio 2013的试用版,修复自: http://go.microsoft.com/?linkid=9832436