簡體   English   中英

在TFS2013中構建Git項目時出現404錯誤

[英]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

我在這里很茫然-有人有任何建議或想法嗎?

您需要單擊屏幕截圖所示的省略號,刪除解決方案,然后從工作區中添加解決方案。 項目路徑看起來像\\ LiveLinkDashboard \\ 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM