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

chore : more verbosity

parent 7462c024
No related branches found
No related tags found
1 merge request!8multiple fixes
......@@ -30,11 +30,14 @@
echo "****************************************************************************************************************************"
echo "****************************************************************************************************************************"
if [[ $CI_PROJECT_NAMESPACE =~ "eclipse/aidge" ]]; then # nominal case : we are in the official project
DEP_ID=$(curl "$API_URL/groups/$CI_PROJECT_NAMESPACE_ID/projects?search=${DEP_NAME}" | jq -r '.[0].id')
echo "curling from \"$API_URL/groups/$CI_PROJECT_NAMESPACE_ID/projects?search=${DEP_NAME}\""
DEP_ID=$(curl -s "$API_URL/groups/$CI_PROJECT_NAMESPACE_ID/projects?search=${DEP_NAME}" | jq -r '.[0].id')
else # case for fork
echo "Retrieving build_artifacts from user forked project."
echo "curling from \"$API_URL/users?username=$CI_PROJECT_ROOT_NAMESPACE\""
USER=$(curl -s "$API_URL/users?username=$CI_PROJECT_ROOT_NAMESPACE")
USER_ID=$(jq -r '.[0].id' <<<$USER)
echo "curling from \"$API_URL/users/$USER_ID/projects?search=${DEP_NAME}\""
PROJ=$(curl -s "$API_URL/users/$USER_ID/projects?search=${DEP_NAME}")
DEP_ID=$(jq -r '.[0].id' <<<$PROJ)
fi
......
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