Problem with default branch

I have a project configured with git, default branch is "master" as follows:

Screen Shot 2013-07-01 at 2.34.23 PM.png


I've also a Service Hook in github configured as follows:

Screen Shot 2013-07-01 at 2.32.28 PM.png

When I push a change to master in github, teamcity starts with "branch: master" but when I click "run" from the ui with "DEFAULT BRANCH" selected... it starts with no branch. So, my build history looks like this:

Screen Shot 2013-07-01 at 2.38.27 PM.png

149 has 2 changes, 150 has 1 change. Then I went to the ui and clicked on "run", 151 started with 3 changes which are actually the 2 from 149 and the one from 150.

What am I doing wrong? thanks     

6 comments
Comment actions Permalink

Hi Jose,

a github service hook marks a build with a branch name, that is why some of the builds have label 'master', you can do that by hand by running a custom build with parameter teamcity.build.branch=<some value>. Since your VCS root doesn't have a branch specification defined, it tracks a single branch (master) and in such a case we don't label builds to make UI cleaner. Let me know if it helps.

0
Comment actions Permalink

Yes, it does help. The problem I've as reported here:

http://youtrack.jetbrains.com/issue/TW-30177

is that when it build with branch: master (from github hook), it doesn't trigger the Build Finish Trigger of other build.

0
Comment actions Permalink

Please specify a TeamCity version you use in the issue.

0
Comment actions Permalink

Hi Dmitry, done

0
Comment actions Permalink

Thanks, this has been fixed in TeamCity 8.0, so upgrade should help.

0

Please sign in to leave a comment.