Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Branch Maker
Branch Maker

Branch Maker

Kerwin Carpede

|
609 installs
| (1) | Free
A build task to create branches
Get it free

Background

This pipeline task provides the ability to create a new branch from the tip of another branch. This task is typically used for automating the creation of release branches with branch policies applied. This helps prevent commits from being pushed directly to release branches.

If you are using Trunk Based Development or Azure DevOps team's Release Flow approach to branch management, then this may make your life a little easier when creating new release branches.

Getting Started

This task does not use git directly. All operations are done using the Azure DevOps REST API.

For this extension to work correctly, it's going to need a few super powers to be able to create a new branch and configure branch policies.

  • Enable the "Allow scripts to access the OAuth token" on the pipeline phase
  • Give the "Project Collection Build Service" the following permissions on the desired repository
    • Contribute (Allow)
    • Create branch (Allow)
    • Create tag (Allow)
    • Edit policies (Allow)

You can also apply these security changes to all git repositories in the project.

See:

Permissions

And...

Permissions

Key Features

  • Allows a pipeline to create a new branch from any repo
  • Apply branch basic policy settings to the new branch
Permissions

Tips

Date Based Branch Names

For more dynamic branch names based on the current date, use an inline PowerShell script to set a "BranchName" variable just before the Branch Maker step executes like so:

Task

With...

PowerShell Script
`$date=$(Get-Date).ToString("yyyy.MM.dd");
Write-Host "##vso[task.setvariable variable=BranchName]$date"

Then use the variable in the Branch Maker step like so:

PowerShell Script

Release Notes

0.1.3

  • Fixed documentation

0.1.0

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