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

Fix if else condition.

parent 42f80d38
No related branches found
No related tags found
No related merge requests found
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
# Check group namespace is valid, if not DEPENDENCY_ID=6437 (aidge group ID) # Check group namespace is valid, if not DEPENDENCY_ID=6437 (aidge group ID)
- > - >
if [ $(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}") -eq 404 ]; then if [ $(curl -s -o /dev/null -w "%{http_code}" "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}") -eq 404 ]; then
DEPENDENCY_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}/projects?search=${DEPENDENCY_NAME}" | jq -r '.[0].id')
else
echo "Using aidge group id by default" echo "Using aidge group id by default"
DEPENDENCY_ID=6437 DEPENDENCY_ID=6437
else
DEPENDENCY_ID=$(curl "https://gitlab.eclipse.org/api/v4/groups/${CI_PROJECT_NAMESPACE_ID}/projects?search=${DEPENDENCY_NAME}" | jq -r '.[0].id')
fi fi
- echo "Project ID for ${DEPENDENCY_NAME} is ${DEPENDENCY_ID}" - echo "Project ID for ${DEPENDENCY_NAME} is ${DEPENDENCY_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