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

[BUILD BRANCH] Use the refs/tags/${CI_COMMIT_TAG}

* When a tag occurs the repo tool use the reference to the tag instead
of the head of the MASTER_BRANCH
parent efa17dbb
No related branches found
No related tags found
No related merge requests found
......@@ -192,10 +192,11 @@ retrigger:
- BUILD_BRANCH=${MASTER_BRANCH}
- |
if [ ${CI_PIPELINE_SOURCE} == "pipeline" ]; then
BUILD_BRANCH="${CI_COMMIT_REF_NAME}"
fi
if [ ${CI_PIPELINE_SOURCE} == "schedule" ]; then
BUILD_BRANCH="${CI_COMMIT_BRANCH}"
BUILD_BRANCH="${CI_COMMIT_REF_NAME}"
elif [ ${CI_PIPELINE_SOURCE} == "schedule" ]; then
BUILD_BRANCH="${CI_COMMIT_BRANCH}"
elif [ ! -z ${CI_COMMIT_TAG} ];
BUILD_BRANCH="refs/tags/${CI_COMMIT_TAG}"
fi
echo "This is the manifest repository URL used for the build: ${CI_REPOSITORY_URL}"
echo "This is the manifest branch used for the build: ${BUILD_BRANCH}"
......
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