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

chore : reduced scope of debug prints

parent 4d5209f9
No related branches found
No related tags found
1 merge request!47Draft: TEST_CI_FORK_DO_NOT_MERGE
...@@ -13,7 +13,6 @@ build:ubuntu_cpp: ...@@ -13,7 +13,6 @@ build:ubuntu_cpp:
- DEPENDENCY_JOB="build:ubuntu_cpp" - DEPENDENCY_JOB="build:ubuntu_cpp"
# - !reference [.download_dependency, script] # - !reference [.download_dependency, script]
- apt-get install -y jq - apt-get install -y jq
- set -x
- BRANCH_TO_PULL="dev" # default branch - BRANCH_TO_PULL="dev" # default branch
# Check if a branch with the same name exist on the dependance repository # Check if a branch with the same name exist on the dependance repository
- > - >
...@@ -27,14 +26,14 @@ build:ubuntu_cpp: ...@@ -27,14 +26,14 @@ build:ubuntu_cpp:
BRANCH_TO_PULL=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} BRANCH_TO_PULL=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
fi fi
elif [ $(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/eclipse/aidge/$DEPENDENCY_NAME/-/tree/$CI_COMMIT_REF_NAME") -eq 404 ]; then elif [ $(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/eclipse/aidge/$DEPENDENCY_NAME/-/tree/$CI_COMMIT_REF_NAME") -eq 404 ]; then
echo "Pull from default"
else else
# Pulling from branch with same name # Pulling from branch with same name
echo "Pull from branch name"
BRANCH_TO_PULL=${CI_COMMIT_REF_NAME} BRANCH_TO_PULL=${CI_COMMIT_REF_NAME}
fi fi
echo "Pull from branch : $BRANCH_TO_PULL"
# Check group namespace is valid, if it is then we are in the official project(aidge group id=6437), otherwise we pull from the fork # Check group namespace is valid, if it is then we are in the official project(aidge group id=6437), otherwise we pull from the fork
- > - >
set -x
# nominal case : we are in the official project # nominal case : we are in the official project
if [ $(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}") -ne 404 ]; then if [ $(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}") -ne 404 ]; then
DEPENDENCY_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}/projects?search=${DEPENDENCY_NAME}" | jq -r '.[0].id') DEPENDENCY_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}/projects?search=${DEPENDENCY_NAME}" | jq -r '.[0].id')
...@@ -50,8 +49,8 @@ build:ubuntu_cpp: ...@@ -50,8 +49,8 @@ build:ubuntu_cpp:
echo "curling from \"https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts\"" echo "curling from \"https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts\""
curl --location "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts" --output build_artifacts.zip curl --location "https://gitlab.eclipse.org/api/v4/projects/$DEPENDENCY_ID/jobs/$JOB_ID/artifacts" --output build_artifacts.zip
fi fi
set +x
- set +x
- unzip -q -o build_artifacts.zip -d . - unzip -q -o build_artifacts.zip -d .
- rm -rf build_cpp - rm -rf build_cpp
# end !reference[] # end !reference[]
......
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