gitlab-ci: Always save artifacts
The unit test logs are important to have when a test fails so
mark these as always save.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-ID: <20240605080942.7675-3-npiggin@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 23bb69e..0e4d620 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,14 +4,18 @@
- dnf update -y
- dnf install -y make python
+# By default artifacts are only saved on success. This uses when:always
+# because the test logs are important to help diagnose failures.
.intree_template:
artifacts:
+ when: always
expire_in: 2 days
paths:
- logs
.outoftree_template:
artifacts:
+ when: always
expire_in: 2 days
paths:
- build/logs