部署历史记录

部署历史记录是一项部署管道功能,可用于查看管道中的过去部署。 此功能设计为日志,其中列出了管道中的所有过去部署。

可以使用部署历史记录日志来检查管道的运行状况,并排查之前部署期间发生的问题。

执行部署时,可以使用内置选项来添加注释,向每个部署添加额外信息。 稍后,在回顾部署历史记录时,注释可帮助你了解每个部署期间发生的情况。

A screenshot of the deployment pipelines history pane.

部署信息

若要查看管道的部署历史记录,请选择“部署历史记录”。

A screenshot of the deployment pipelines history button.

部署历史记录日志的格式设置为表。 每行表示一个部署,列列出每个部署的以下信息:

  • 部署到 - 部署的目标阶段。

  • 日期和时间 - 部署结束的日期和时间。

  • 部署者 - 执行部署的人(或服务主体)。

  • - 列指示源和目标阶段中的项之间的区别。 除“失败部署”之外的所有标签,请参阅部署发生前的目标阶段中的项。 这些标签显示已部署的类别中的项数。 可以选择标签以查看该类别中所有项的列表。 如果未显示标签,则表示没有部署的项适合该类别。

    Label 名称 说明 展开视图
    A screenshot of the deployment pipelines history new item icon. 新项 已部署的新项 A screenshot of the deployment pipelines history new item icon selected, with the list of new items for this deployment expanded.
    A screenshot of the deployment pipelines history different item icon. 不同项 源阶段和目标阶段中不同的已部署项 A screenshot of the deployment pipelines history different item icon selected, with the list of different items for this deployment expanded.
    A screenshot of the deployment pipelines history unchanged item icon. 未更改项 与目标阶段中相同的部署项 A screenshot of the deployment pipelines history unchanged item icon selected, with the list of unchanged items for this deployment expanded.
    A screenshot of the deployment pipelines history failed deployment icon. 部署失败的项 指示部署失败 A screenshot of the deployment pipelines history failed deployment icon selected.
  • 注释 - 一个注释,如果存在。 选择注释的图标以显示其内容。

    A screenshot of the deployment pipelines history note icon selected, with the expanded note displayed.

  • ID - 部署 ID。 在排查最新的失败部署时用作参考。

  • 状态 - 部署的状态。

    图标 部署状态
    A screenshot of the deployment pipelines history successful deployment status icon. 成功
    A screenshot of the deployment pipelines history unsuccessful deployment status icon. 不成功

可以选择查看特定阶段或所有阶段的部署历史记录。

注意事项和限制

以下部分列出了部署历史记录限制。

  • 详细信息显示从 2022 年 6 月起的内容。 在此日期之前,显示汇总的信息。

  • 部署历史记录显示部署过程中项的名称。 更改项的名称后,部署历史记录将其视为新项。 在这种情况下,具有已更改名称的项将在部署后首次显示在日志中。