From b8368687d7c20c17c851106c89bc769ff58ad111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= Date: Sun, 6 Mar 2022 23:26:58 +0100 Subject: ci: Upload artifacts on failure without specifying a directory `on_failure` allows to retrieve artifacts in case of failure, and only in that case: see https://docs.gitlab.com/ee/ci/yaml/index.html#artifactswhen The build takes place in a directory of the form `xfconf-${version}git${commit}/_build/sub` at the moment, but the `_build/sub` part could possibly change in the future, as it is added by Gitlab. So the easiest and most robust way seems to be to recover the `test-suite.log` files without worrying about the path. See also https://gitlab.xfce.org/xfce/xfconf/-/merge_requests/19#note_43611 --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ee9739..f926d50 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,5 +10,6 @@ distcheck: script: - xvfb-run -a make distcheck artifacts: + when: on_failure paths: - - tests/*/test-suite.log + - '**/test-suite.log' -- cgit v1.2.1