amida-tech / api-boilerplate

Node ES6 Express REST API boilerplate with Postgres Sequelize and Gulp
Apache License 2.0
153 stars 57 forks source link

WIP: Terminate packer builder instances after 1h #1

Closed hrickards closed 6 years ago

hrickards commented 7 years ago

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):