pipeline-aws-plugin icon indicating copy to clipboard operation
pipeline-aws-plugin copied to clipboard

Feature request: awaitDeploymentCompletion to give option to run custom script for deployment status "Ready"

Open shazic opened this issue 5 years ago • 0 comments

Description

In the Jenkins pipeline, we may want to introduce an approval gate before re-routing of the traffic. Currently, awaitDeploymentCompletion waits for the deployment when the deployment status is "Ready". If we could hook a script or get an option to stop waiting for deployment when the deployment status is Ready, then custom actions could be taken at this stage.

So, the requirement here is to either have:

  1. The awaitDeploymentCompletion give an option to complete its waiting loop when the Deployment Status is "Ready", so that custom action (for example, manual approval followed by continue-deployment) could be coded.
  2. Allow for hooks (custom scripts) to be attached with the various status (particularly "Ready" status)

Expected behavior: The requirement here is to either have:

  1. The awaitDeploymentCompletion give an option to complete its waiting loop when the Deployment Status is "Ready", so that custom action (for example, manual approval followed by continue-deployment) could be coded.
  2. Allow for hooks (custom scripts) to be attached with the various status (particularly "Ready" status)

Actual behavior: The awaitDeploymentCompletion waits for the deployment when the deployment status is "Ready".

Environment

Jenkins-Version: 2.164.3

Java-Version: 1.8.0_191

Plugin-Version: 1.38

Master/Slave Setup: Yes

shazic avatar Jul 08 '19 05:07 shazic