Edit in GitHubLog an issue

Advancing and Cancelling Steps

Certain steps in the pipeline can be "advanced" or "cancelled" when interactive action is required due to a pipeline behavior or configuration. These actions can be performed through the Cloud Manager UI or programatically.

These actions apply to a variety of steps:

  • For the Code Quality, Security Test, and Performance Test steps, advance and cancel are how important failures in these steps get overridden or rejected, respectively.
  • For the Go-Live Approval step, advance and cancel are how the deployment is approved or rejected, respectively.
  • For the Schedule step, advance and cancel are how a schedule is set or the pipeline is canclled, respectively.
  • For the Build, Security Test, and Performance Test steps, cancel can be used to cancel the step (and the pipeline) while the step is running.

For both advance and cancel functions, a PUT request is made to the appropriate endpoint, discoverable as the http://ns.adobe.com/adobecloud/rel/pipeline/advance and http://ns.adobe.com/adobecloud/rel/pipeline/cancel links of the step, respectively. The body of the request will vary based on the step and circumstance.

Advance Body Definitions#

Override Code Quality, Security Test, Performance Test Results#

To override important failures in the Code Quality, Security Test, and Performance Test steps, the request body contains an array of the metrics being overridden. The metric keys can be found in the Step Metrics response and are also listed on the Understanding Metric Data page. For example, if the coverage and sqale_rating metrics were failing and an override was desired, the body would be:

Copied to your clipboard
1{
2 "metrics": [
3 {
4 "kpi":"coverage",
5 "override":true
6 },
7 {
8 "kpi":"sqale_rating",
9 "override":true
10 }
11 ]
12}

Go-Live Approval#

The body for the Go-Live Approval step passes approved as true:

Copied to your clipboard
1{
2 "approved": true
3}

Schedule Step#

The body for the Schedule step can take two forms. The first is where a future date/time is set. In this case, type in the request body is set to SCHEDULED and schedule is set to an ISO-8601 formatted date. For example:

Copied to your clipboard
1{
2 "type":"SCHEDULED",
3 "schedule":"2018-11-16T13:45:00.000Z"
4}

The second form is where the deployment should be done immediately. In this case, the type is set to IMMEDIATE and no schedule value is required:

Copied to your clipboard
1{
2 "type":"IMMEDIATE"
3}

Resume Paused Deployment#

The body to resume a paused deployment step passes resume as true:

Copied to your clipboard
1{
2 "resume":true
3}

Stop Paused Deployment#

The body to stop a paused deployment step passes resume as false:

Copied to your clipboard
1{
2 "resume":false
3}

Cancel Body Definitions#

Reject Code Quality, Security Test, Performance Test Results#

The body to reject important failures for one of these steps passes override as false:

Copied to your clipboard
1{
2 "override":false
3}

Cancel Build, Security Test, Performance Test, and Schedule Steps#

The body to cancel one of these running steps passes cancel as true:

Copied to your clipboard
1{
2 "cancel":true
3}

Reject Go-Live Approval#

The body to reject a Go-Live Approval step passes approved as false:

Copied to your clipboard
1{
2 "approved":false
3}
  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.