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

use CI PORJECT ID

parent c1d22865
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,9 @@ shared_job:
.download_dependency:
script:
- GROUP_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups?search=aidge" | grep -m1 -oP '"id":\s*\K\d+')
- PROJECT_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/$GROUP_ID/projects?search=$DEPENDENCY_NAME" | grep -m1 -oP '"id":\s*\K\d+')
- echo "https://gitlab.eclipse.org/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/main/download?job=$JOB"
- echo "https://gitlab.eclipse.org/eclipse/aidge/$DEPENDENCY_NAME/-/tree/$CURRENT_BRANCH"
- echo "https://gitlab.eclipse.org/eclipse/aidge/$DEPENDENCY_NAME/-/tree/$CI_COMMIT_REF_NAME"
# Check if a branch with the same name exist on the dependance repository
- RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/eclipse/aidge/$DEPENDENCY_NAME/-/tree/$CURRENT_BRANCH")
- >
......
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