Jenkins build jobs that are manually stopped don't give packer a chance to clean up after itself and terminate build instances. This PR uses at to halt build instances after 1h of execution, and sets halt behavior to terminate.
Related JIRA tickets:
How should this be manually tested?
Run a deploy, cancel the build job and make sure the packer instance terminates within an hour.
What's this PR do?
Jenkins build jobs that are manually stopped don't give packer a chance to clean up after itself and terminate build instances. This PR uses
at
to halt build instances after 1h of execution, and sets halt behavior to terminate.Related JIRA tickets:
How should this be manually tested?
Run a deploy, cancel the build job and make sure the packer instance terminates within an hour.
Any background context you want to provide?
See https://github.com/hashicorp/packer/pull/3556
Screenshots (if appropriate):