Commit 2227e5ab authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

command/build: if any builds fail, exit with 1 exit status

parent 2f0e8316
......@@ -16,6 +16,7 @@ IMPROVEMENTS:
BUG FIXES:
* core: build names no longer cause invalid config errors. [GH-197]
* command/build: If any builds fail, exit with non-zero exit status.
* communicator/ssh: SCP exit codes are tested and errors are reported. [GH-195]
## 0.2.0 (July 16, 2013)
......
......@@ -250,6 +250,11 @@ func (c Command) Run(env packer.Environment, args []string) int {
env.Ui().Say("\n==> Builds finished but no artifacts were created.")
}
if len(errors) > 0 {
// If any errors occurred, exit with a non-zero exit status
return 1
}
return 0
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment