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

fix : var name

parent 7b5a7cc9
No related branches found
No related tags found
1 merge request!47Draft: TEST_CI_FORK_DO_NOT_MERGE
......@@ -17,10 +17,6 @@ build:ubuntu_cpp:
# Check if a branch with the same name exist on the dependency repository
- BRANCH_TO_PULL="dev" # default branch
- set -x
# Get project information
- PROJECT_INFO=$(curl -s --header "PRIVATE-TOKEN:${CI_JOB_TOKEN}" "${API_URL}/projects/${PROJECT_PATH}")
# Parse owner information
- OWNER=$(echo "$PROJECT_INFO" | jq -r '.owner')
- >
if [ "$CI_MERGE_REQUEST_ID" ]; then # CASE MERGE REQUEST
echo "Merge request pipeline detected"
......@@ -45,6 +41,10 @@ build:ubuntu_cpp:
fi
fi
- echo "Pulling from branch:\"$BRANCH_TO_PULL\""
# Get project information
- PROJECT_INFO=$(curl -s --header "PRIVATE-TOKEN:${CI_JOB_TOKEN}" "${API_URL}/projects/${DEPENDENCY_NAME}")
- OWNER=$(echo "$PROJECT_INFO" | jq -r '.owner')
- echo "${CI_PROJECT_PATH}"
- echo "${CI_PROJECT_DIR}"
- echo "${CI_PROJECT_URL}"
......
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