Forum | Documentation | Website | Blog

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

More debug commands

parent a118b5e8
Branches
No related merge requests found
......@@ -121,10 +121,13 @@ elif [ "$CI_COMMIT_TAG" != "" ]; then
export GITLAB_USER=docs
export GITLAB_HOST=$CI_SERVER_HOST
export PROJECT_REPO=docs.beagleboard.io
git checkout main
echo "git branch output check"
git branch
echo "$(git branch -a --contains tags/$CI_COMMIT_TAG)"
export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | tr -d '* ' | sed 's/.*origin\///' | head -n 1)
echo "**** $GIT_BRANCH contains tags/$CI_COMMIT_TAG ****"
git checkout $GIT_BRANCH
export PROJECT_BRANCH=$GIT_BRANCH
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