I am using TeamCity as my CI server.I am currently generating apk's for two different branches. Now I need to upload these apk's to hockey-app for two different teams.But I cannot understand whether build is coming from the default branch or release branch.I tried
#!/bin/sh
branch=%teamcity.build.branch%
echo $branch
if [ $branch = "default" ]
then
echo "got the answer"
else
echo "None of the condition met"
fi
Now I am building default branch.But line 3 is printing %teamcity.build.branch% instead of default.Please give me a solution.