Skip to content
Snippets Groups Projects
Commit 78eb1453 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

improve messaging

parent 81813a69
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -2,6 +2,9 @@ stages: ...@@ -2,6 +2,9 @@ stages:
- core - core
- extra - extra
variables:
PYTHONUNBUFFERED: 1
core_build: core_build:
stage: core stage: core
script: script:
......
...@@ -22,8 +22,9 @@ def main(pkg_list_file, fail=True): ...@@ -22,8 +22,9 @@ def main(pkg_list_file, fail=True):
time.sleep(10) time.sleep(10)
pipeline = project.pipelines.get(pipeline.id) pipeline = project.pipelines.get(pipeline.id)
if pipeline.status != 'success': if pipeline.status != 'success':
message = "Pipeline {} for {} failed with status {}".format( message = "Pipeline https://gitlab.idiap.ch/bob/{pkg}/"
pipeline.id, pkg, pipeline.status) "pipelines/{id} failed with status {status}".format(
id=pipeline.id, pkg=pkg, status=pipeline.status)
if fail: if fail:
raise RuntimeError(message) raise RuntimeError(message)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment