2017-06-29 22 views
0

我正在使用Team Foundation Server 2017更新1. 我創建了一個發佈管理,其中包含工件之間的XAML構建,與發佈定義不一樣。 每當我運行發行版時,我都會在下載那個工件時失敗。 我試圖使用來自位於同一個項目中的不同版本管理的相同版本,以及來自不同項目的其他vNext版本,並且在這兩種情況下都可以下載。TFS2017 - 構建和發佈管理 - 從不同項目下載XAML構建工件時出錯

這裏的日誌中的錯誤的下面:

An error occurred during download: System.AggregateException: One or more errors occurred. ---> Microsoft.TeamFoundation.Build.WebApi.BuildNotFoundException: Requested build 34588 could not be found. 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__46.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__43`1.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__27`1.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__26`1.MoveNext() 
    --- End of inner exception stack trace --- 
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) 
    at Microsoft.TeamFoundation.Release.ArtifactRepository.Build.BuildArtifact.EnsureVersionBelongsToLinkedDefinition(ArtifactDefinition artifactDefinition, BuildHttpClient buildClient, XamlBuildHttpClient xamlBuildClient) 
    at Microsoft.TeamFoundation.Release.ArtifactRepository.Build.BuildArtifact.Download(ArtifactDefinition artifactDefinition, String localFolderPath) 
    at Microsoft.TeamFoundation.DistributedTask.Plugin.Release.AgentArtifactDownloader.Download(ArtifactDefinition artifactDefinition, Uri workingFolder) 
    at Microsoft.TeamFoundation.DistributedTask.Plugin.Release.ReleaseJobExtension.<>c__DisplayClass23_0.<DownloadArtifacts>b__1() 
    at Microsoft.TeamFoundation.Release.Windows.Implementation.RetryExecutor.Execute(Action action) 
---> (Inner Exception #0) Microsoft.TeamFoundation.Build.WebApi.BuildNotFoundException: Requested build 34588 could not be found. 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponse(HttpResponseMessage response) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__46.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__43`1.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__27`1.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__26`1.MoveNext()<--- 

有誰看到了類似的東西有一個如何解決它的想法?

+0

完全有可能您嘗試的方案不受支持 - XAML構建已棄用。 –

+0

在發行版定義中,我遇到了另一個xaml版本問題,它在與發佈定義相同的項目中定義,並且工作正常。 –

+0

Right。這個場景是「我想從跨團隊項目邊界的發佈定義訪問XAML構建。」這可能是不受支持的情況。 –

回答

0

的問題是在2017年TFS 2017年更新2

有關的bug

的更多信息,可以發現here一個bug已被固定在TFS:

爲了解決這個問題,你必須更新TFS代理人版本2.117.2。

0

經過更多的細節和測試後,得到了和你一樣的結果和錯誤信息。 「整個團隊項目」場景中沒有針對XAML構建的額外設置。

Noticed you have also submitted a bug to DeveloperCommunity-TFS-- Error downloading artifacts of XAML build from different project

這是直接向TFS團隊提交bug的正確位置,開發人員和PM會及時跟進。你只需要關注該網站。

恐怕這很可能是XAML構建時不支持的情況。此外,丹尼爾是正確的XAML構建是一個遺留構建系統,並已過時。強烈建議您移動基於新任務的系統。

+0

嗨帕特里克,感謝您的幫助,不幸我已經試圖通過web api查看構建,並且我看到構建是在我放入正確的項目時發現的,當我將構建所在的項目(顯然:))。不幸的是,失敗的函數不是我開發的代碼,而是微軟的代碼。 –

+0

@MattiaMagosso通過更多的細節和測試後,得到了和你一樣的結果和錯誤信息。 「整個團隊項目」場景中沒有針對XAML構建的額外設置。 注意到您還提交了一個bug到 ** DeveloperCommunity-TFS **。它是直接向TFS團隊提交bug的正確位置,開發人員和PM將及時跟進。你只需要關注該網站。更多細節請看我的更新答案。 –