Skip to content
Snippets Groups Projects
Commit 9c6e4e8a authored by Lorenzo Pagliai's avatar Lorenzo Pagliai
Browse files

[BUILD][BRANCH] Fix bug on BUILD_BRANCH variable

* The build is always triggered via a parent pipeline in this version
of the CI/CD so it was necessary to fix the condition.
parent f8247528
No related branches found
No related tags found
No related merge requests found
......@@ -51,11 +51,10 @@ workflow:
- export EULA=1
- BUILD_BRANCH=${MASTER_BRANCH}
- |
if [ ${CI_PIPELINE_SOURCE} == "pipeline" ]; then
if [ ${CI_PIPELINE_SOURCE} == "parent_pipeline" ]; then
BUILD_BRANCH="${CI_COMMIT_REF_NAME}"
elif [ ${CI_PIPELINE_SOURCE} == "schedule" ]; then
BUILD_BRANCH="${CI_COMMIT_BRANCH}"
elif [ ! -z ${CI_COMMIT_TAG} ]; then
fi
if [ ! -z ${CI_COMMIT_TAG} ]; then
BUILD_BRANCH="refs/tags/${CI_COMMIT_TAG}"
fi
echo "This is the manifest repository URL used for the build: ${CI_REPOSITORY_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