Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update teamcity docs with asbjornu suggestion
Co-Authored-By: Asbjørn Ulsberg <[email protected]>
  • Loading branch information
jakubsuchybio and asbjornu authored Oct 5, 2019
commit 0fc5aa48e4cee17c394fea577eaac8263a1acd53
2 changes: 1 addition & 1 deletion docs/build-server-support/build-server/teamcity.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ For GitVersion to pick up pull requests properly you need to promote the `%teamc

Just go to your build configuration, Parameters, click Add, Name should be `env.Git_Branch`, value should be `%teamcity.build.vcs.branch.{vcsid}%` where vcsid is your VCS root id. You should get auto completion for this.

For GitVersion to work with [MainLine mode](../../reference/mainline-development.md) you need to set configuration parameter `teamcity.git.fetchAllHeads = true`, because TeamCity by default fetches only current branch for building, but MainLine mode requires master for calculating version.
For GitVersion to work with any mode requiring other than the currently built branch to calculate the version number, you need to set the configuration parameter [`teamcity.git.fetchAllHeads = true` in TeamCity](https://www.jetbrains.com/help/teamcity/git.html#Git-GeneralSettings), because TeamCity by default fetches only the current branch for building.
More reference about this #912, #1199, #1234, #1441, #1477 and #1825

Again go to your build configuration, Parameters, click Add, Name should be `teamcity.git.fetchAllHeads`, value should be `true`.
Expand Down