Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hcp: wrap completeBuild to mark as failed on error
When a build cannot be completed without errors, the build state was left as running, unless the build explicitly failed, which meant that HCP Packer would be responsible for changing the status after the heartbeats for the build stopped being sent for two 5m periods. This commit changes this behaviour, by explicitly marking the build as failed if something did not work while trying to complete a build on HCP Packer, even if the local Packer core build succeeded before that.
- Loading branch information