From 78c130543cd90a8c84c3260a9415c4562db6e9f9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 1 Mar 2018 17:09:22 +0700 Subject: [PATCH] ci: Store the logs on build failure We should save the logs directory when the CI pipeline fails, so that we have a chance at debugging the failure. --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d559ef3cb..d2469d1aaf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,4 +20,9 @@ cache: build: stage: build script: - - bash -x ./.gitlab-ci/test-docker.sh + - bash -x ./.gitlab-ci/test-docker.sh + artifacts: + when: on_failure + name: "gtk-${CI_COMMIT_REF_NAME}" + paths: + - "${CI_PROJECT_DIR}/_build_full/meson-logs"