[gparted] Save all files on CI job failure for investigation
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Save all files on CI job failure for investigation
- Date: Fri, 6 Dec 2019 17:13:40 +0000 (UTC)
commit ce18685dfadd42be6832e97d78a762118e60ecd5
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Tue Dec 3 14:08:06 2019 +0000
Save all files on CI job failure for investigation
Since patchset !49 "Add file system interface tests" was merged the
GitLab Continuous Integration jobs have sometimes failed executing
test_SupportedFilesystems. So on failure save all files from the docker
image for 1 week for investigation.
Documentation:
* Introduction to job artifacts
https://gitlab.gnome.org/help/user/project/pipelines/job_artifacts.md
* GitLab CI/CD Pipeline Configuration Reference, artifacts
https://gitlab.gnome.org/help/ci/yaml/README.md#artifacts
.gitlab-ci.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f1a380b9..f4c6328c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,6 +42,14 @@ stages:
- echo nproc=$nproc
- make -j $nproc
- make install
+ # Save all files on job failure for investigation.
+ artifacts:
+ when: on_failure
+ name: "$CI_PROJECT_NAME-ci-job-$CI_JOB_ID-$CI_JOB_NAME"
+ untracked: true
+ paths:
+ - ./
+ expire_in: 1 week
.test_stage_template: &test_stage_definition
stage: test
@@ -54,6 +62,14 @@ stages:
- export GTEST_FILTER='-BlockSpecialTest.NamedBlockSpecialObjectBySymlinkMatches'
- make check
- make distcheck
+ # Save all files on job failure for investigation.
+ artifacts:
+ when: on_failure
+ name: "$CI_PROJECT_NAME-ci-job-$CI_JOB_ID-$CI_JOB_NAME"
+ untracked: true
+ paths:
+ - ./
+ expire_in: 1 week
# Check GParted can be built and installed on CentOS and Ubuntu.
centos_build:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]