diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml index 57f611611f06c1ad3cedad272602c3b9b19fa417..969b4a60bb4e30f434c75d533fb77a9501c98930 100644 --- a/.gitlab/ci/build.gitlab-ci.yml +++ b/.gitlab/ci/build.gitlab-ci.yml @@ -48,7 +48,8 @@ build:ubuntu_cpp: # Retrieve latest pipeline of given branch, independant from its success or failure 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: xV2geW-wxZyFv5hL5E44" '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: oxDmKtZEEAx3St_8z-Pn" '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: xV2geW-wxZyFv5hL5E44" '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: 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') JOB_ID=$(curl --header "PRIVATE_TOKEN: xV2geW-wxZyFv5hL5E44" "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"