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

remove bracket

parent b7539cb0
Branches 3-add-mdm-standard-connectors
No related tags found
No related merge requests found
......@@ -10,17 +10,17 @@ shared_job:
- 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 "try to pull from ${CURRENT_BRANCH}"
- echo "try to pull from $CURRENT_BRANCH"
# 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}/-/tree/${CURRENT_BRANCH}")
- RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/eclipse/aidge/$DEPENDENCY/-/tree/$CURRENT_BRANCH")
- >
if [ "$RESPONSE_CODE" -eq 404 ] || [ "$CI_MERGE_REQUEST_ID" ]; then
echo "default to main branch"
curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/${PROJECT_ID}/jobs/artifacts/main/download?job=build:ubuntu_cpp"
curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/$PROJECT_ID/jobs/artifacts/main/download?job=build:ubuntu_cpp"
else
echo "pull from ${CURRENT_BRANCH}"
curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/
projects/${PROJECT_ID}/jobs/artifacts/${CURRENT_BRANCH}/download?job=${JOB}"
projects/$PROJECT_ID/jobs/artifacts/$CURRENT_BRANCH/download?job=$JOB"
fi
# variables:
# MY_CUSTOM_FUNCTION: >
......
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