Skip to content
Snippets Groups Projects
Commit 486e9472 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : jq quotes

parent 6f56fe3e
No related branches found
No related tags found
1 merge request!47Draft: TEST_CI_FORK_DO_NOT_MERGE
...@@ -50,7 +50,7 @@ build:ubuntu_cpp: ...@@ -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'" 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' ) 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") 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\"" 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" 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 set +x
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment