DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Kinga
Kinga

Posted on

Azure DevOps pipelines shallow fetch =1 is now default

This may come as a surprise, and I imagine it will "break" many newly created pipelines.
All of a sudden things that used to work, won't.

Newly created Azure DevOps pipelines have shallow fetch enabled by default, and the depth is set to 1.

Image description

It's not documented, not even in what's new (although I asked for it to be mentioned so maybe by the time you are reading this, it's there).

You have two options now, if you want to change it.
Either fetchDepth in checkout step, or disable shallow fetch on the pipeline level.

Disable shallow fetch

  1. Navigate to your pipeline and click Edit Image description
  2. Click the ... button and choose Triggers Image description
  3. Switch to YAML tab and click on Get sources Image description
  4. Here it is, at the very bottom Image description

Top comments (0)

DEV has this feature:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›