Skip to content
Snippets Groups Projects
Commit b8de7296 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Use grep instead of jq.

parent 21c9aa02
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
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