Forum | Documentation | Website | Blog

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

WIP: fix if statement

parent 2d1d09ac
No related merge requests found
Pipeline #4356 passed with stage
in 1 minute and 53 seconds
......@@ -84,7 +84,7 @@ elif [ "$CI_COMMIT_TAG" != "" ]; then
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\///')
if ["$PROJECT_BRANCH" != ""]; then export GIT_BRANCH=$PROJECT_BRANCH; else export GIT_BRANCH=$CI_DEFAULT_BRANCH; fi
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
......
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