gitlab-ci: Archive logs of acceptance tests

Keep the logs of acceptance tests for two days on GitLab. If you want
to make it available for more time, click on the 'Keep' button on
the Job page at web UI.

By default GitLab will archive artifacts only if the job succeed.
Instead let's keep it on both success and failure, so it gives the
opportunity to the developer/maintainer to check the error logs
as well as to the logs of CANCEL tests (not shown on the job logs).

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201211183827.915232-4-wainersm@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2020-12-11 15:38:27 -03:00 committed by Thomas Huth
parent ba2232bae6
commit df063546c2

View File

@ -49,8 +49,12 @@ include:
- ${CI_PROJECT_DIR}/avocado-cache - ${CI_PROJECT_DIR}/avocado-cache
policy: pull-push policy: pull-push
artifacts: artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
when: always
expire_in: 2 days
paths: paths:
- build/tests/results/latest/results.xml - build/tests/results/latest/results.xml
- build/tests/results/latest/test-results
reports: reports:
junit: build/tests/results/latest/results.xml junit: build/tests/results/latest/results.xml
before_script: before_script: