Adding an Approval Stage

Approval stage pauses the deployment for a specified duration for manual decision from the approver. Approvers are notified of deployments that are pending manual approval. The default timeout period for approval is seven days after which the deployment fails. You can configure the manual approval stage to require more than one approval. Approvers can approve or reject deployments.

Each service in Oracle Cloud Infrastructure (OCI) integrates with Identity and Access Management (IAM) for authentication and authorization. To grant users permission to approve a deployment, you must create a group, add users (approvers) to the group and define policies. For policy examples, see the Approval stage policies in Deployment Pipeline Policies.

    1. Open the navigation menu and click Developer Services. Under DevOps, click Projects.
    2. Select a project and a pipeline associated with that project.
    3. To add the Approval stage sequentially or in parallel, click the + icon and select Add stage.
    4. Select Control - Approval, and then click Next.
    5. Enter stage name and description. Adding a description is optional.
    6. Enter the number of approvers.
    7. To add the Approval stage to the pipeline, click Add.
  • To add an approval stage to the pipeline, run the create-manual-approval-stage command:

    oci devops deploy-stage create-manual-approval-stage

    Required parameters for the create-manual-approval-stage command:

    • --approval-policy
    • --pipeline-id
    • --stage-predecessor-collection

    To get all the commands for deploy-stage:

    oci devops deploy-stage -h

    To get help for the create-manual-approval-stage command:

    oci devops deploy-stage create-manual-approval-stage -h
  • To add an approval stage to the pipeline, use the CreateDeployStage operation. For deployStageType attribute, specify the MANUAL_APPROVAL value.