From 4a1e3b43ce9630d44c90bdda0708efa08243f48d Mon Sep 17 00:00:00 2001
From: mavogel <mavogel@cern.ch>
Date: Tue, 29 Aug 2023 20:01:40 +0200
Subject: [PATCH] Debugging

---
 .gitlab-ci.yml          | 2 ++
 script-gitlab-ci.yml.py | 1 +
 2 files changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 59af7c0c9..71ad5b588 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ build_x86_64-centos7-gcc11-dbg_dev3:
       - logs/qmtestCool/$BINARY_TAG
   before_script:
     - "echo $BINARY_TAG $CI_COMMIT_REF_NAME"
+    - "env"
     - "export highest=$(curl --header \"PRIVATE-TOKEN: $PRIVATE_TOKEN\" \"https://gitlab.cern.ch/api/v4/projects/25684/jobs?per_page=100\" | jq  \".[] | select(.name == \\\"build_x86_64-centos7-gcc11-dbg_dev3\\\") | select(.ref == \\\"${CI_COMMIT_REF_NAME}\\\") | .id\" | sort -n | tail -1)"
     - "echo $highest"
     - "curl -L --header \"PRIVATE-TOKEN: $PRIVATE_TOKEN\" \"https://gitlab.cern.ch/api/v4/projects/25684/jobs/$highest/artifacts\" > coral-build_x86_64-centos7-gcc11-dbg_dev3.zip"
@@ -40,6 +41,7 @@ build_x86_64-centos7-gcc11-opt_dev3:
       - logs/qmtestCool/$BINARY_TAG
   before_script:
     - "echo $BINARY_TAG $CI_COMMIT_REF_NAME"
+    - "env"
     - "export highest=$(curl --header \"PRIVATE-TOKEN: $PRIVATE_TOKEN\" \"https://gitlab.cern.ch/api/v4/projects/25684/jobs?per_page=100\" | jq  \".[] | select(.name == \\\"build_x86_64-centos7-gcc11-opt_dev3\\\") | select(.ref == \\\"${CI_COMMIT_REF_NAME}\\\") | .id\" | sort -n | tail -1)"
     - "echo $highest"
     - "curl -L --header \"PRIVATE-TOKEN: $PRIVATE_TOKEN\" \"https://gitlab.cern.ch/api/v4/projects/25684/jobs/$highest/artifacts\" > coral-build_x86_64-centos7-gcc11-opt_dev3.zip"
diff --git a/script-gitlab-ci.yml.py b/script-gitlab-ci.yml.py
index e8f635da5..0c7371324 100755
--- a/script-gitlab-ci.yml.py
+++ b/script-gitlab-ci.yml.py
@@ -11,6 +11,7 @@ def build_gitlabci(binary_tag, view, OS):
       - logs/qmtestCool/$BINARY_TAG
   before_script:
     - "echo $BINARY_TAG $CI_COMMIT_REF_NAME"
+    - "env"
     - "export highest=$(curl --header \\\"PRIVATE-TOKEN: $PRIVATE_TOKEN\\\" \\\"https://gitlab.cern.ch/api/v4/projects/25684/jobs?per_page=100\\\" | jq  \\\".[] | select(.name == \\\\\\\"{name}\\\\\\\") | select(.ref == \\\\\\\"${{CI_COMMIT_REF_NAME}}\\\\\\\") | .id\\\" | sort -n | tail -1)"
     - "echo $highest"
     - "curl -L --header \\\"PRIVATE-TOKEN: $PRIVATE_TOKEN\\\" \\\"https://gitlab.cern.ch/api/v4/projects/25684/jobs/$highest/artifacts\\\" > coral-{name}.zip"
-- 
GitLab