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