Message ID | 20201211183827.915232-4-wainersm@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | gitlab-ci: Refactor show logs code and archive logs | expand |
On 11/12/2020 19.38, Wainer dos Santos Moschetta wrote: > 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> > --- > .gitlab-ci.yml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml > index 85aa20ffde..bf3df843e2 100644 > --- a/.gitlab-ci.yml > +++ b/.gitlab-ci.yml > @@ -49,8 +49,12 @@ include: > - ${CI_PROJECT_DIR}/avocado-cache > policy: pull-push > artifacts: > + name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" > + when: always > + expire_in: 2 days > paths: > - build/tests/results/latest/results.xml > + - build/tests/results/latest/test-results > reports: > junit: build/tests/results/latest/results.xml > before_script: > Reviewed-by: Thomas Huth <thuth@redhat.com>
On Fri, Dec 11, 2020 at 3:38 PM Wainer dos Santos Moschetta <wainersm@redhat.com> wrote: > > 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> > --- > .gitlab-ci.yml | 4 ++++ > 1 file changed, 4 insertions(+) > Reviewed-by: Willian Rampazzo <willianr@redhat.com>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85aa20ffde..bf3df843e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,8 +49,12 @@ include: - ${CI_PROJECT_DIR}/avocado-cache policy: pull-push artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + when: always + expire_in: 2 days paths: - build/tests/results/latest/results.xml + - build/tests/results/latest/test-results reports: junit: build/tests/results/latest/results.xml before_script:
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> --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+)