First of all let me explain my configuration. I've a setup like this, my VCS configuration has:
Default branch: master
Branch specificaiton: +:refs/pulls/(*/merge)
I use this branch specification in order to test pull requests as explained here:
and it works.
My build configuration has an step "push to heroku" which is a command line script as follows:
if [ "%teamcity.build.branch.is_default%" = "true" ]; then
git push email@example.com:my-heroku-thing.git master
as you can see here, I publish only if the branch is the default one.
So, the problem I have now is that if I choose branch <Default Branch> from Teamcity UI, the build is queued but it is not run because there isn't any compatible agent as shown here:
If I select "master" from the list, the build is run, but %teamcity.build.branch.is_default% is FALSE.
What am I doing wrong?