使用此任务可以暂停发布管道中的部署,并等待手动干预。
Note
This task can only be used in an agentless job and is intended for use in a classic release pipeline. 本文介绍经典管道。 有关 YAML 用法,请参阅 手动验证任务。
Syntax
# This task is supported on classic release pipelines only.
# Use the classic designer to add and configure this task in a classic release pipeline.
# See the following Inputs section for details on the inputs that this task supports.
Inputs
instructions
-
Instructions
string.
指定在恢复或拒绝手动干预时向用户显示的说明。 根据这些说明,用户将做出有关此手动干预的明智决定。
emailRecipients
-
Notify users
string.
向特定用户(或组)发送手动干预挂起的电子邮件。 只有具有管理部署权限的用户才能执行手动干预。
onTimeout
-
On timeout
string. 允许的值:reject、resume。 默认值:reject。
在等待指定的超时或 60 天(以较早者为准)后自动拒绝或恢复手动干预。
任务控制选项
除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性。
Output variables
None.
Remarks
在发布管道中使用此任务可在阶段中暂停活动部署。 这通常执行以执行各种手动步骤或作,然后恢复自动部署任务。
Note
This task can only be used in an agentless job and is intended for use in a classic release pipeline. 本文介绍经典管道。 有关 YAML 用法,请参阅 手动验证任务。
The Manual Intervention task does not perform deployment actions directly. 相反,它允许在阶段内暂停活动部署,通常执行各种手动步骤或作,然后恢复自动部署任务。 例如,用户可能需要在继续之前编辑当前版本的详细信息(也许输入发布中任务使用的自定义变量的值)。
The Manual Intervention task configuration includes an Instructions parameter that is used to provide related information or to specify the manual steps the user executes during the agentless job. 可以将任务配置为在等待干预时向用户和用户组发送电子邮件通知,并在发生可配置超时后指定自动响应(拒绝或恢复部署)。
Note
可以使用内置变量和自定义变量来生成说明的一部分。
When the Manual Intervention task is activated during a deployment, it sets the deployment state to IN PROGRESS. 此时会显示一个消息栏,其中包含打开“手动干预”对话框的链接,其中包含说明。 执行手动步骤后,管理员或用户可以选择恢复部署或拒绝部署。 Users with Manage deployment permission on the stage can resume or reject the manual intervention.
有关使用此任务的详细信息,请参阅 审批和入口概述。
Requirements
| Requirement | Description |
|---|---|
| Pipeline types | Classic release |
| Runs on | Server |
| Demands | None |
| Capabilities | 此任务不满足作业中后续任务的任何要求。 |
| Command restrictions | Any |
| Settable variables | Any |
| Agent version | 所有支持的代理版本。 |
| Task category | Deploy |