Remove result code check

This commit is contained in:
David Boreham 2023-01-19 13:30:01 -07:00
parent bbbb57ec06
commit 6faa933d42

View File

@ -85,7 +85,7 @@ def command(ctx, include, exclude):
print(f"Executing: {build_command}")
envs = {"CERC_NPM_AUTH_TOKEN": os.environ["CERC_NPM_AUTH_TOKEN"]} | ({"CERC_SCRIPT_DEBUG": "true"} if debug else {})
try:
build_result = docker.run("cerc/builder-js",
docker.run("cerc/builder-js",
remove=True,
interactive=True,
tty=True,
@ -95,8 +95,9 @@ def command(ctx, include, exclude):
volumes=[(repo_full_path, "/workspace")],
command=build_command
)
# TODO: check result in build_result.returncode
print(f"Result is: {build_result}")
# Note that although the docs say that build_result should contain
# the command output as a string, in reality it is always the empty string.
# Since we detect errors via catching exceptions below, we can safely ignore it here.
except DockerException as e:
print(f"FATAL error executing build in container:\n {e}")
else: