-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate job cancellation to CodeDeploy #41
base: master
Are you sure you want to change the base?
Conversation
Change-Id: Ib42ea1acc853aed054906e9f0b8d110e0b4511df
|
||
this.logger.println("User cancelling CodeDeploy job"); | ||
try { | ||
this.logger.println(stopDeployment(aws, deploymentId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deploymentId might be null here, we should handle that case.
|
||
this.logger.println("Stopping deployment " + deploymentId); | ||
|
||
StopDeploymentResult stopDeploymentResult = aws.codedeploy.stopDeployment( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stopping a deployment might not be immediate. We might want to wait for the deployment to actually stop before continuing.
Change-Id: I458cc1157eb13b9834ff2620dea65f4313358555
Change-Id: I96512f857c41ae4e9814d6b37b85c672dd809a2e
Would love to see this so we don't have to give people access to CodeDeploy in the console. |
Hi, |
Sorry I haven't had time to make the above changes yet. Will try to get to it soon unless anyone else wants to handle. |
Will this be merged/Fixed. Currently if you cancel jenkins plan, the deploy still happens with empty deploy folder, which causes unwanted codedeploy trigger on AWS. |
Have tested this and it works. Cancelling the job within Jenkins successfully sends a stop to the CodeDeploy Deployment.