diff options
Diffstat (limited to 'contractor')
-rwxr-xr-x | contractor | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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): |