Skip to content

Cancelling a pipeline does not work at the go live approval step #694

@pat-lego

Description

@pat-lego

Expected Behavior

Using the AIO CLI you should be able to cancel the pipeline at the go live approval step.

Actual Behavior

When the go live approval step is met you cannot use the CMGR plugin to cancel the pipeline as it believes that it is running the uiTests (see video recording showcasing the issue)

Screen.Recording.2024-06-19.at.10.52.04.AM.mov

Reproduction Scenario, Platform, and Version

Reproduced using a pipeline and produced a video recording of the issue.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Start a production pipeline
  2. Wait for go live approval
  3. Execute the command https://github.com/adobe/aio-cli-plugin-cloudmanager?tab=readme-ov-file#aio-cloudmanagercurrent-executioncancel-pipelineid
  4. See error in video recording

** Work Around **

  1. Execute this API https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/#tag/Pipeline-Execution/operation/getExecution
  2. Then get the stepId and phaseId
  3. Using that executed https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/#tag/Pipeline-Execution/operation/cancelPipelineExecutionStep with the following payload https://developer.adobe.com/experience-cloud/cloud-manager/guides/api-usage/advancing-and-cancelling-steps/#go-live-approval but instead of true put false
  4. The pipeline will get cancelled successfully

AIO CLI should be able to leverage the CMGR API's to correctly cancel a pipeline

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions