diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-04-10 19:24:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-04-10 19:24:26 +0300 |
commit | ddf06e34bfaadd24db9640c4ccebd630e6f1da52 (patch) | |
tree | 3d00b157eabe69ef8431a61c40e1226adba68b10 /contractor | |
parent | 4e720a904bef704e800e6998d8e2a00d27c3e015 (diff) | |
download | ick-contractor-ddf06e34bfaadd24db9640c4ccebd630e6f1da52.tar.gz |
Refactor: upload new worker image first
This enables us to do more steps in one SSH invocation later if we
want to.
Diffstat (limited to 'contractor')
-rwxr-xr-x | contractor | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -64,16 +64,16 @@ class ContractorApplication(cliapp.Application): m = self.manager(timer) timer.report('load-build-spec') - # This might fail. We ignore the failure. - self.verbose('stopping worker') - m.kill_worker() - self.verbose( 'uploading image to worker: {}'.format(bs.worker_image())) if m.upload_worker_image(bs.worker_image()).failed(): self.error('could not upload image to worker') sys.exit(1) + # This might fail. We ignore the failure. + self.verbose('stopping worker') + m.kill_worker() + self.verbose('setting up workspace on worker') ws = bs.workspace() source = bs.source() |