【问题标题】:TFS: Setup CI deployments for DEV serverTFS:为 DEV 服务器设置 CI 部署
【发布时间】: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


【解决方案1】:

您的构建(Web App CI 构建)中的放置文件夹不再可用,或者您的 IIS 服务器无法访问放置文件夹(缺少权限)。

您可以验证(在对新构建进行排队之后)放置文件夹是否存在并且放置文件夹中是否有文件。您可以通过打开构建并转到工件部分并浏览放置文件夹来验证这一点,如here 所示。

您还可以仔细检查您是否使用了正确的参数,类似的问题供您参考:The item MY_ARTIFACT_NAME in container XXX could not be found

【讨论】:

    猜你喜欢
    • 2020-09-23
    • 1970-01-01
    • 2016-05-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-10
    • 2018-10-22
    相关资源
    最近更新 更多