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

Add automatic restart of pipeline if agent is terminated (useful for spot instances) #335

Open
b-edwin-bianchi opened this issue Nov 8, 2023 · 0 comments

Comments

@b-edwin-bianchi
Copy link

What feature do you want to see added?

It would be great if this plugin supported the ability to automatically restart a pipeline if an agent is terminated. This would be particularly useful in the case of spot instances.

The EC2 Fleet plugin supports this.
https://github.com/jenkinsci/ec2-fleet-plugin/blob/903fcfd0a77cd7b46b456e13072a065765085a5e/src/main/java/com/amazon/jenkins/ec2fleet/FleetAutoResubmitComputerLauncher.java#L112

I've been working on trying to get retry working directly in the Jenkinsfile, but it does not seem to initiate when I kill an ECS agent on purpose (only EC2s). Plus there would be dozens of Jenkinsfiles to update should I go this route.
https://github.com/jenkins-infra/pipeline-library/blob/4cc2ad5932b1b0eb79ae3bdf9976317630ca5bea/vars/buildPlugin.groovy#L51

If the plugin supported it natively, that would be outstanding.

Thank you.

Upstream changes

No response

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

No branches or pull requests

1 participant