diff options
author | Ben Copeland <ben.copeland@linaro.org> | 2017-10-26 16:12:29 +0100 |
---|---|---|
committer | Ben Copeland <ben.copeland@linaro.org> | 2017-10-26 16:12:29 +0100 |
commit | 499d740b0bd585815d2816eb77569c0ce9603a8d (patch) | |
tree | f566920a7ab125e0b7120a7baa96fdaa9457371c | |
parent | f56646ffe920bec903c1f3333f8a59f2a0d99161 (diff) |
Error checking on run_script
Change-Id: I3596a8e68e92a82106873cae40a3b5b95e94c0fa
-rwxr-xr-x | yadp_builder.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yadp_builder.py b/yadp_builder.py index 878b5a3..d8f5356 100755 --- a/yadp_builder.py +++ b/yadp_builder.py @@ -89,8 +89,11 @@ if __name__ == '__main__': template_output = jinja2_from_template( './templates', 'configure-yadocker-cloud.groovy-dryrun.j2', data) + publishdry = server.run_script(template_output) - logging.info(publishdry) + if 'error' in publishdry: + logging.info(publishdry) + exit(1) else: publish = server.run_script(template_output) logging.info(publish) |