From e8c1e064c60e7d6a1306744e306fe0cee4303ffc Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Sun, 9 Feb 2025 21:02:27 +0000
Subject: [PATCH] Fix hanging CI deploy job

---
 .gitlab-ci.yml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7c9238c3..6a66ba01 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -323,19 +323,18 @@ run_hba_target_selfcal:
       - cal_solutions.tar.gz
     when: on_failure
 
-run_hba_target_VLBI:
-  stage: run_tests
-  image: $INTEGRATION_IMAGE
+run_hba_target_vlbi:
+  extends: .run_tests
   script:
     - cwltool --no-container --preserve-environment PATH --preserve-environment LINC_DATA_ROOT --preserve-environment PYTHONPATH --outdir results --leave-tmpdir --tmpdir-prefix /tmp/run_hba_target/ workflows/HBA_target_VLBI.cwl test_jobs/HBA_target.json
-    - test_jobs/check_workflow_results.py results /builds/RD/LINC/data/results_target_VLBI
+    - test_jobs/check_workflow_results.py results $CI_PROJECT_DIR/data/results_target_VLBI
   after_script:
-    - find /tmp/run_hba_target -name "*.log" -print0 | tar czf hba_target_VLBI_logs.tar.gz --null -T -
+    - find /tmp/run_hba_target -name "*.log" -print0 | tar czf hba_target_vlbi_logs.tar.gz --null -T -
     - find /tmp/run_hba_target -name "*.png" -print0 | tar czf inspection.tar.gz --null -T -
-    - find /builds/RD/LINC/results/ -name "cal_solutions.h5" -print0 | tar czf cal_solutions.tar.gz --null -T -
+    - find $CI_PROJECT_DIR/results/ -name "cal_solutions.h5" -print0 | tar czf cal_solutions.tar.gz --null -T -
   artifacts:
     paths:
-      - hba_target_VLBI_logs.tar.gz
+      - hba_target_vlbi_logs.tar.gz
       - inspection.tar.gz
       - cal_solutions.tar.gz
     when: on_failure
-- 
GitLab