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

Update script to retrieve project id.

parent f9c149b2
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,11 @@
echo "Pull from branch name"
BRANCH_TO_PULL=${CI_COMMIT_REF_NAME}
fi
- echo "curling from https://gitlab.eclipse.org/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$BRANCH_TO_PULL/download?job=$DEPENDENCY_JOB"
- curl -f --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$BRANCH_TO_PULL/download?job=$DEPENDENCY_JOB"
- apt-get install jq
- DEPENDENCY_ID=$(curl --header "https://gitlab.example.com/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}/projects?search=${DEPENDENCY_NAME}" | jq -r '.[0].id')
- echo "Project ID for ${DEPENDENCY_NAME} is ${DEPENDENCY_ID}"
- echo "curling from https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/artifacts/$BRANCH_TO_PULL/download?job=$DEPENDENCY_JOB"
- curl -f --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/artifacts/$BRANCH_TO_PULL/download?job=$DEPENDENCY_JOB"
- unzip -o build_artifacts.zip -d .
- rm -rf build_cpp
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