Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

br0ch0n
Copy link

@br0ch0n br0ch0n commented Nov 17, 2015

Have tested this and it works. Cancelling the job within Jenkins successfully sends a stop to the CodeDeploy Deployment.

Change-Id: Ib42ea1acc853aed054906e9f0b8d110e0b4511df

this.logger.println("User cancelling CodeDeploy job");
try {
this.logger.println(stopDeployment(aws, deploymentId));
Copy link
Contributor

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.

@amoebaOfDoom amoebaOfDoom changed the title Issue #40 propagate job cancellation to CodeDeploy Propagate job cancellation to CodeDeploy Nov 27, 2015

this.logger.println("Stopping deployment " + deploymentId);

StopDeploymentResult stopDeploymentResult = aws.codedeploy.stopDeployment(
Copy link
Contributor

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
@nwalke
Copy link

nwalke commented Dec 20, 2015

Would love to see this so we don't have to give people access to CodeDeploy in the console.

@suryanarayanan
Copy link
Contributor

Hi,
Could you please address the concerns so that we can merge this PR?
Thanks.

@br0ch0n
Copy link
Author

br0ch0n commented Feb 25, 2016

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.

@mvehar-preskok
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants