[英]404 error when building Git project in TFS2013
我正在嘗試獲取一個通過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)
我以為這可能是它要命中的URL,但是當您取消選中Get sources from a Team Foundation Git repository
源”時,它會從“源設置”選項卡生成的URL可以正常工作:
http://teamsource:8080/tfs/defaultcollection/Live%20Link%20Dashboard/_git/Live%20Link%20Dashboard
因此,我認為這是我從流程模板的“ Build
部分到解決方案文件的路徑-因此,我嘗試了以下值,但這些值均無效:
\LiveLinkDashboard.sln
$\LiveLinkDashboard.sln
/LiveLinkDashboard.sln
$/LiveLinkDashboard.sln
我在這里很茫然-有人有任何建議或想法嗎?
問題看起來像這樣: TFS 2013 git CI生成定義指向錯誤的地址
微軟的解決方法是:
此問題已在Visual Studio 2013中得到修復。可以通過以下修補程序安裝Visual Studio 2013的試用版: http : //go.microsoft.com/?linkid=9832436
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.