From 3d88a81f102783bd4af3d99db1e1f14d14050d6c 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 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"] }}: -- 2.47.2