From: Maria Matejka Date: Sat, 10 May 2025 18:17:34 +0000 (+0200) Subject: Gitlab: properly cleanup after failed netlab jobs X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d88a81f102783bd4af3d99db1e1f14d14050d6c;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 6e38e468b..146b402f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1121,6 +1121,11 @@ build-netlab: - cd netlab - sudo ./stop - sudo ./runtest -s v2 -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 207a33798..27b3d66e0 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 v2 -m check $TEST_NAME + after_script: + - sudo ./stop + artifacts: + when: on_failure + untracked: true {% for test in netlab %} test-{{ test["name"] }}: