0

目標TFS:設置CI部署的DEV服務器

發佈成功的Web應用程序CI構建到IIS開發服務器。

當前設置

關聯生成定義第一拷貝\bin文件夾內容到Build.ArtifactStagingDirectory,然後出版相同的路徑的僞影。名稱值爲drop,類型爲Server

版本定義僅包含Windows Machine File Copy步驟。它的Source屬性指向上述的drop文件夾,其目標是UNC地址。

Artifacts選項卡鏈接到構建定義,併爲相同的源啓用Continuous Deployment

症狀

部署狀態Rejected。返回的The item drop in container 10039 could not be found.見下日誌中的錯誤:

2016-12-02T01:46:47.1273383Z Cleaning artifacts directory: C:\agent_work\9ee18c2ab… 2016-12-02T01:46:47.1612721Z Cleaned artifacts directory: C:\agent_work\9ee18c2ab 2016-12-02T01:46:47.1692742Z Number of linked artifacts to download: 1 2016-12-02T01:46:47.1722775Z Starting artifacts download... 2016-12-02T01:46:47.2203037Z Downloading linked artifact: VehicleTracking.DevCI... 2016-12-02T01:46:47.2222969Z Downloading artifact of type: Build 2016-12-02T01:46:47.2252925Z Created artifact folder C:\agent_work\9ee18c2ab\VehicleTracking.DevCI 2016-12-02T01:46:47.2712805Z Preparing to get the list of available artifacts from build. 2016-12-02T01:46:47.4233327Z Preparing to download artifact: drop 2016-12-02T01:46:47.4593025Z Artifact Type: ServerDrop 2016-12-02T01:46:47.4613413Z The artifact is of older version: False 2016-12-02T01:46:47.8273312Z Caching items under 'drop' in the file container... 2016-12-02T01:46:48.3123751Z 0 placed file(s): 0 downloaded, 0 empty and new, 0 preserved. 2016-12-02T01:46:48.3273435Z An error occurred during download: System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Services.FileContainer.ContainerItemNotFoundException: The item drop in container 10039 could not be found.

問題

爲什麼降不發現?這個版本有什麼問題或者有什麼問題嗎?

+0

你能看到從構建公佈的文物? –

回答

1

您的構建(Web應用程序CI構建)中的放置文件夾不再可用,或者您的IIS服務器無法訪問放置文件夾(缺少權限)。

如果放置文件夾存在並且放置文件夾中有文件,您可以驗證(在排隊新建立後)。您可以通過打開構建並轉到工件部分並瀏覽放置文件夾來驗證這一點,如在here上顯示。

你也可以仔細檢查,如果你使用了正確的參數,供您參考類似的問題:The item MY_ARTIFACT_NAME in container XXX could not be found