Skip to content
Snippets Groups Projects
Commit 0b470905 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : added token to curl

parent 7bce3903
No related branches found
No related tags found
1 merge request!47Draft: TEST_CI_FORK_DO_NOT_MERGE
......@@ -42,8 +42,8 @@ build:ubuntu_cpp:
set -x
echo "Retrieving build_artifacts from hrouis' forked project."
USER_ID=17216
echo "curl 'https://gitlab.eclipse.org/api/v4/users/${USER_ID}/projects?search=${DEPENDENCY_NAME}'"
DEPENDENCY_ID=$(curl 'https://gitlab.eclipse.org/api/v4/users/${USER_ID}/projects?search=${DEPENDENCY_NAME}')
echo "command : curl'https://gitlab.eclipse.org/api/v4/users/${USER_ID}/projects?search=${DEPENDENCY_NAME}'"
DEPENDENCY_ID=$(curl --header "PRIVATE_TOKEN: oxDmKtZEEAx3St_8z-Pn" "https://gitlab.eclipse.org/api/v4/users/${USER_ID}/projects?search=${DEPENDENCY_NAME}")
DEPENDENCY_ID=$(cat $DEPENDENCY_ID | jq -r '.[0].id')
# retrieve latest pipeline of given branch, independant from its success or failure
PIPELINE_ID=$(curl 'https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/pipelines?ref=${BRANCH_TO_PULL}&order_by=updated_at&sort=desc' | jq -r '.[0].id')
......
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