diff --git a/.gitlab/ci/shared_test.gitlab-ci.yml b/.gitlab/ci/shared_test.gitlab-ci.yml index dc6097f84a4dc64bd94d4a5e329f23a70f95c2fd..d3be57e9e51107e89b9b58de8e69d19810945b3f 100644 --- a/.gitlab/ci/shared_test.gitlab-ci.yml +++ b/.gitlab/ci/shared_test.gitlab-ci.yml @@ -7,9 +7,9 @@ shared_job: .download_dependency: script: - - local GROUP_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups?search=aidge" | jq -r '.[0].id') + - local GROUP_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups?search=aidge" | grep -m1 -oP '"id":\s*\K\d+') - echo "GROUP_ID $GROUP_ID " - - local PROJECT_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/$GROUP_ID/projects?search=$DEPENDENCY_NAME" | jq -r '.[0].id') + - local PROJECT_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/$GROUP_ID/projects?search=$DEPENDENCY_NAME" | grep -m1 -oP '"id":\s*\K\d+') - echo "project $DEPENDENCY_NAME id = $PROJECT_ID" # variables: