diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml index 454a7f2eca9a89e98ac8e4b7df2ce760d8613d62..79010b586d2db4301de69dd5d436964e3031d488 100644 --- a/.gitlab/ci/build.gitlab-ci.yml +++ b/.gitlab/ci/build.gitlab-ci.yml @@ -17,6 +17,10 @@ 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"