From 486e9472b6c25cb6ddc4ccd70ecc0d4d6347c510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me> Date: Thu, 21 Mar 2024 11:13:56 +0100 Subject: [PATCH] fix : jq quotes --- .gitlab/ci/build.gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml index 763763f3..175e2a2d 100644 --- a/.gitlab/ci/build.gitlab-ci.yml +++ b/.gitlab/ci/build.gitlab-ci.yml @@ -50,7 +50,7 @@ build:ubuntu_cpp: echo "command curl --header \"PRIVATE_TOKEN: xV2geW-wxZyFv5hL5E44\" \'https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines?ref=${BRANCH_TO_PULL}&order_by=updated_at&sort=desc' | jq -r '.[0].id'" test=$(curl --header "PRIVATE_TOKEN: 926V98hnCwny2sqQQzGc" 'https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines?ref=${BRANCH_TO_PULL}&order_by=updated_at&sort=desc' ) PIPELINE_ID=$(curl --header "PRIVATE_TOKEN: 926V98hnCwny2sqQQzGc" "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines?ref=${BRANCH_TO_PULL}&order_by=updated_at&sort=desc" | jq -r ".[0].id") - JOB_ID=$(curl --header "PRIVATE_TOKEN: 926V98hnCwny2sqQQzGc" "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines/$PIPELINE_ID/jobs" | jq "map(select(.name == '${DEPENDENCY_JOB}')) | .[0].id") + JOB_ID=$(curl --header "PRIVATE_TOKEN: 926V98hnCwny2sqQQzGc" "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines/$PIPELINE_ID/jobs" | jq 'map(select(.name == "${DEPENDENCY_JOB}")) | .[0].id') echo "curling from \"https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts\"" curl --location --output build_artifacts.zip --header "PRIVATE_TOKEN: $CI_JOB_TOKEN" "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts" set +x -- GitLab