【发布时间】:2017-04-17 19:13:29
【问题描述】:
目标
将成功的 Web 应用 CI 构建发布到 IIS 开发服务器。
当前设置
相关的构建定义首先复制\bin文件夹内容到Build.ArtifactStagingDirectory,然后发布相同路径的工件.名称值为drop,类型为Server。
发布定义只包含一个Windows Machine File Copy 步骤。它的Source 属性指向上述放置文件夹,其目的地是一个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.
问题
为什么找不到drop?是构建有问题还是发布有问题?
【问题讨论】:
-
你能看到构建中发布的工件吗?
标签: deployment tfs continuous-integration tfsbuild continuous-deployment