Adding a Wait Stage
Add a Wait stage in the build pipeline to test the pipeline, which pauses the build run for a specific duration.
Before you add a stage, you must have a build pipeline.
The Wait stage can't be added as the first stage to a build pipeline. The pipeline must have at least one Managed Build stage.
This stage adds a specified duration of delay in the build pipeline. Duration is given in seconds, for example, 300 seconds. During this duration, the build process is paused.
For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.
- Open the navigation menu and click Developer Services. Under DevOps, click Projects.
- Select a project and a build pipeline.
- To add a stage to the pipeline, click the + icon.
- Select Add stage to add the stage sequentially or select Add parallel stage.
- For the stage type, select Wait, and then click Next.
- Enter a name and description for the stage. Adding a description is optional.
- Enter the wait time in seconds.
- To add the stage to the pipeline, click Add.
To create a build pipeline, run the
createcommand:oci devops build-pipeline create --project-idTo add a Wait stage for the pipeline, run the
create-wait-stagecommand:oci devops build-pipeline-stage create-wait-stageRequired parameters:
--build-pipeline-id--wait-criteria--stage-predecessor-collection
To get all the commands for
build-pipelineandbuild-pipeline-stage:oci devops build-pipeline -hoci devops build-pipeline-stage -hTo get help for the
create-wait-stagecommand:oci devops build-pipeline-stage create-wait-stage -hTo create a build pipeline, use the
CreateBuildPipelineoperation.To add a Wait stage for the pipeline, use the
CreateBuildPipelineStageoperation. For thebuildPipelineStageTypeattribute, specify the value asWAIT.