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/input/docs/reference/build-servers/azure-devops.md
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,14 @@ either using the Command Line build step or install an extension / custom build
14
14
step. The custom build step requires a one-time setup to import the GitVersion
15
15
task into your TFS or Azure DevOps Pipeline instance.
16
16
17
+
:::{.alert .alert-danger}
18
+
**Important**
19
+
20
+
You must disable shallow fetch, either in the pipeline settings UI or by setting `fetchDepth: 0` in your `checkout` step;
21
+
without it, Azure DevOps Pipelines will perform a shallow clone, which will cause GitVersion will display an error message.
22
+
See [the Azure DevOps documentation](https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-checkout?view=azure-pipelines#shallow-fetch) for more information.
23
+
:::
24
+
17
25
## Executing GitVersion
18
26
19
27
### Using GitVersion with the MSBuild Task NuGet Package
0 commit comments