]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Gitlab: properly cleanup after failed netlab jobs
authorMaria Matejka <mq@ucw.cz>
Sat, 10 May 2025 18:17:34 +0000 (20:17 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 25 May 2025 19:02:51 +0000 (21:02 +0200)
Also keeps artifacts from failed netlab jobs to allow for
easier debugging

.gitlab-ci.yml
misc/gitlab/template.yml.j2

index 037d74ba5a7a129ae5335d341c2d1d151fd54c47..0e7453a0153c9ebc64e4c14bbd7f2c6aaf1faeeb 100644 (file)
@@ -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:
index c9a55080660b291a18fdad10a4d5d9466f89f9c8..bce8bcb75d69d4ea3288094cd550e7e175f34942 100644 (file)
@@ -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"] }}: