Commit 10bfcb16 authored by Tulio Ruiz's avatar Tulio Ruiz
Browse files

[FIX] Run command with spur to better catching the exception.

- We use stdout and stderr to avoid the double logging format
- Spurs detects better the errors during the build so is easier to handle in such cases

[FIX] Just in case check is there is any image

[FIX] Better use check_call because no output is shown for a while and we know what that mean
parent 6eafe078
Pipeline #63414 passed with stage
in 22 seconds
......@@ -73,6 +73,9 @@ def run_build_image(config):
_logger.exception('Could not build the image, please read the log above')
sys.exit(1)
images = _cli.images(config['instance_image'])
if not images:
_logger.error('Could not build the image, please read the log above')
sys.exit(1)
image_sha = images[0].get('Id')
short_id = image_sha.split(':')[1][:10]
config.update({
......
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