-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Docs] Azure Devops - Fetch Depth #3612
Comments
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. |
This issue was closed because it has been stalled for 30 days with no activity. Thank you for your contributions |
A pull request documenting this would be merged in an instant. 🙏🏼 |
I think The AzureDevops task should point instead to https://github.com/GitTools/actions/tree/main/docs/examples/azure as there we have the examples and docs |
Closing in favor of #3937 |
I get this problem even with steps:
- checkout: self
clean: true
fetchDepth: 0
fetchTags: true
submodules: recursive |
I also have this problem @mc0re - did you find a solution? It seems like every couple of years, Microsoft VSTS/AzureDevOps finds a way to break this feature. It broke in 2018 and 2022, and now 2024. |
@jzabroski In my case the issue was in using on-site agents and not cleaning them. There's a file in |
For Azure devops build pipelines created later than a certain date, they started doing shallow clone's and subsequently this means the following gitversion
AzDO
tasks fail.There is a gitversion docs page for configuring the different build servers but nothing about this for azure devops that I could see.
The important piece of info is here: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-checkout?view=azure-pipelines#shallow-fetch
It basically boils down to this, you need to add an intial
checkout
task to your yaml pipeline to control checkout behaviour and explicit set fetch depth to 0 (which means it won't do shallow fetch).The text was updated successfully, but these errors were encountered: