summaryrefslogtreecommitdiff
path: root/contractor
diff options
context:
space:
mode:
Diffstat (limited to 'contractor')
-rwxr-xr-xcontractor6
1 files changed, 5 insertions, 1 deletions
diff --git a/contractor b/contractor
index a879417..0fdff50 100755
--- a/contractor
+++ b/contractor
@@ -128,7 +128,7 @@ class ContractorApplication(cliapp.Application):
Chdir('/workspace/src'),
Build(bs.build()),
]
- self.exec_verbosely(worker, *execs)
+ build_failed = worker.verbosely(*execs).failed()
with Timer(self.verbose, 'shutdown-worker'):
execs = [
@@ -142,6 +142,10 @@ class ContractorApplication(cliapp.Application):
self.verbose('saving workspace to {}'.format(ws))
self.sync_from_workspace(dest, port, ws)
+ if build_failed:
+ self.error('build FAILED')
+ sys.exit(1)
+
self.verbose('build finished OK')
def load_build_spec(self, filename):