diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59af7c0c94d1134384e10540cfceac976525617e..71ad5b58830d954d94431086a83a29c4c5340e39 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 e8f635da57233ce31244bfc69c6c200ac1c5462d..0c7371324681bd78f93843eaf2e1010b6f96b12d 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"