From: Maria Matejka Date: Sat, 10 May 2025 18:17:34 +0000 (+0200) Subject: Gitlab: properly cleanup after failed netlab jobs X-Git-Tag: v3.1.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0a485b048fb2200b264ae715883a820956b28d9;p=thirdparty%2Fbird.git Gitlab: properly cleanup after failed netlab jobs Also keeps artifacts from failed netlab jobs to allow for easier debugging --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb347f259..178abde2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1125,6 +1125,11 @@ build-netlab: - cd netlab - sudo ./stop - sudo ./runtest -s v3 -m check $TEST_NAME + after_script: + - sudo ./stop + artifacts: + when: on_failure + untracked: true test-babel-base: diff --git a/misc/gitlab/template.yml.j2 b/misc/gitlab/template.yml.j2 index c9a550806..bce8bcb75 100644 --- a/misc/gitlab/template.yml.j2 +++ b/misc/gitlab/template.yml.j2 @@ -391,6 +391,11 @@ build-netlab: - cd netlab - sudo ./stop - sudo ./runtest -s v3 -m check $TEST_NAME + after_script: + - sudo ./stop + artifacts: + when: on_failure + untracked: true {% for test in netlab %} test-{{ test["name"] }}: