Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 2d1d09ac authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

WIP: fix GIT_BRANCH CI variable issue

parent 9c2ef0ce
No related merge requests found
Pipeline #4354 passed with stage
in 1 minute and 4 seconds
......@@ -83,7 +83,9 @@ elif [ "$CI_COMMIT_TAG" != "" ]; then
export VERSION_MAJOR=${TAG_VER[0]}
export VERSION_MINOR=${TAG_VER[1]}
export EXTRAVERSION=${TAG_SPLIT[1]}
export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | head -1 | sed 's/.*origin\///')
# export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | head -1 | sed 's/.*origin\///')
if ["$PROJECT_BRANCH" != ""]; then export GIT_BRANCH=$PROJECT_BRANCH; else export GIT_BRANCH=$CI_DEFAULT_BRANCH; fi
if [ "$GIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
export VER_DIR=latest
export PAGES_URL=https://docs.beagleboard.org
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment