diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc247eefb8205b807c72a3582e14ba7f70235641..18d366b29f55e6dc73a39774e911e1f3e6b7f29a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,6 @@ build_x86_64-centos7-gcc11-dbg_dev3: - logs/qmtestCool/$BINARY_TAG before_script: - "echo $BINARY_TAG $CI_COMMIT_REF_NAME" - - "echo $PRIVATE_TOKEN $CI_JOB_TOKEN" - "export highest=$(curl --header \"JOB-TOKEN: $CI_JOB_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 \"JOB-TOKEN: $CI_JOB_TOKEN\" \"https://gitlab.cern.ch/api/v4/projects/25684/jobs/$highest/artifacts\" > coral-build_x86_64-centos7-gcc11-dbg_dev3.zip" @@ -41,7 +40,6 @@ build_x86_64-centos7-gcc11-opt_dev3: - logs/qmtestCool/$BINARY_TAG before_script: - "echo $BINARY_TAG $CI_COMMIT_REF_NAME" - - "echo $PRIVATE_TOKEN $CI_JOB_TOKEN" - "export highest=$(curl --header \"JOB-TOKEN: $CI_JOB_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 \"JOB-TOKEN: $CI_JOB_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 a4f38512f2449041c0971e33897ce44927c71a83..22ee1fe4860d945e411b6d2e729e533d55d39166 100755 --- a/script-gitlab-ci.yml.py +++ b/script-gitlab-ci.yml.py @@ -11,7 +11,6 @@ def build_gitlabci(binary_tag, view, OS): - logs/qmtestCool/$BINARY_TAG before_script: - "echo $BINARY_TAG $CI_COMMIT_REF_NAME" - - "echo $PRIVATE_TOKEN $CI_JOB_TOKEN" - "export highest=$(curl --header \\\"JOB-TOKEN: $CI_JOB_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 \\\"JOB-TOKEN: $CI_JOB_TOKEN\\\" \\\"https://gitlab.cern.ch/api/v4/projects/25684/jobs/$highest/artifacts\\\" > coral-{name}.zip"