From f0a485b048fb2200b264ae715883a820956b28d9 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sat, 10 May 2025 20:17:34 +0200 Subject: [PATCH] Gitlab: properly cleanup after failed netlab jobs Also keeps artifacts from failed netlab jobs to allow for easier debugging --- .gitlab-ci.yml | 5 +++++ misc/gitlab/template.yml.j2 | 5 +++++ 2 files changed, 10 insertions(+) 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"] }}: -- 2.47.2