From 78eb145354246d68dc62e051d56b0ff21cf07284 Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Mon, 5 Feb 2018 18:30:44 +0100 Subject: [PATCH] improve messaging --- .gitlab-ci.yml | 3 +++ build.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54745a4..ccd8867 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,9 @@ stages: - core - extra +variables: + PYTHONUNBUFFERED: 1 + core_build: stage: core script: diff --git a/build.py b/build.py index 1dc1adc..b763262 100644 --- a/build.py +++ b/build.py @@ -22,8 +22,9 @@ def main(pkg_list_file, fail=True): time.sleep(10) pipeline = project.pipelines.get(pipeline.id) if pipeline.status != 'success': - message = "Pipeline {} for {} failed with status {}".format( - pipeline.id, pkg, pipeline.status) + message = "Pipeline https://gitlab.idiap.ch/bob/{pkg}/" + "pipelines/{id} failed with status {status}".format( + id=pipeline.id, pkg=pkg, status=pipeline.status) if fail: raise RuntimeError(message) else: -- GitLab