You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build-server-support/build-server/tfs-build-vnext.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,4 +55,12 @@ You might be able to use `$(GitVersion_BuildMetaData)` to achieve a similar resu
55
55
See [Variables](/more-info/variables/) for more info on the variables.
56
56
57
57
#### 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