Skip to content

Commit a4892cf

Browse files
committed
Merge pull request #785 from pascalberger/VSTSDocImprovements
Add known limitations regarding tag handling in VSTS / TFS
2 parents 2bbe5bb + 9b5203e commit a4892cf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/build-server-support/build-server/tfs-build-vnext.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,12 @@ You might be able to use `$(GitVersion_BuildMetaData)` to achieve a similar resu
5555
See [Variables](/more-info/variables/) for more info on the variables.
5656

5757
#### Known limitations
58-
If you are using on premises TFS, make sure you are using at least **TFS 2015 Update 1**, otherwise a few things will not work.
58+
* If you are using on premises TFS, make sure you are using at least **TFS 2015 Update 1**, otherwise a few things will not work.
59+
* You need to make sure that all tags are fetched for the Git repository, otherwise you may end with wrong versions (e.g. `FullSemVer` like `1.2.0+5` instead of `1.2.0` for tagged releases)
60+
Just checking the `Clean Repository` check box in the build definition settings might not be enough since this will run a `git clean -fdx/reset --hard` without fetching all tags later.
61+
You can force deletion of the whole folder and a re-clone containing all tags by settings the variable `Build.Clean` to `true`.
62+
This will take more time during build but makes sure that all tags are fetched.
63+
In the future it is planned to allow using `git.exe` instead of current `libgit2sharp` for syncing the repos which might allow other possibilities to solve this issue.
64+
For details see this [GitHub issue](https://github.com/Microsoft/vso-agent-tasks/issues/1218).
65+
* If running a build for a certain commit (through passing the commit SHA while queueing the build) all tags from the repository will be fetched, even the ones newer than the commit.
66+
This can lead to different version numbers while re-running historical builds.

0 commit comments

Comments
 (0)