In case your CI server does not have environment variable with branch name and you have a dockerized build without git
binary inside of container, you can just use:
cat .git/HEAD | awk -F '/''{print $NF}'
In case your CI server does not have environment variable with branch name and you have a dockerized build without git
binary inside of container, you can just use:
cat .git/HEAD | awk -F '/''{print $NF}'