Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Selective Checkout Reborn
Selective Checkout Reborn

Selective Checkout Reborn

Nicolai Knudsen

|
12 installs
| (1) | Preview
A build task that can be used to only checkout a specific folder from a git repository.
Get it free

Selective Checkout for Azure DevOps

This is a fork of Sebastian Mechelke's Selective Checkout with the following improvements:

  • Added support for fetchDepth: 0 to allow full history cloning
  • Updated required Node.js version

All credit for the original implementation goes to Sebastian Mechelke.

This extension contains a pipeline task that allows for slim git checkouts. You can select what folders you want to download. This keeps your traffic low and your build times short.

Requirements

Git v2.37.1+ needs to be installed on the build agent.

Usage

steps:
- checkout: none

- task: SelectiveCheckoutReborn@0
  inputs:
    pathsToCheckout: 'path/to/download'

For multiple paths:

steps:
- checkout: none

- task: SelectiveCheckoutReborn@0
  inputs:
    pathsToCheckout: |
      path/to/download/1/
      path/to/download/2/

If a shallow clone is not wanted:

steps:
- checkout: none

- task: SelectiveCheckoutReborn@0
  inputs:
    pathsToCheckout: 'path/to/download/*'
    fetchDepth: 0 # The same semantics as the normal checkout task.

Limitations

  • Only Github and Azure Devops repositories are supported.
  • No multiple repository support.
  • No Team Foundation Version Control (TFVS) support.
  • No advanced further checkout parameters, like fetchTags or clean

If you need more features, feel free to contact me.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft