How to use regex pattern to match the branch name in Bamboo

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The purpose of this KB is to provide few examples on how to use the regex pattern matching in Bamboo for matching the branch names. 

Environment

All supported version version of Bamboo

Solution

  1. One of the use cases of regex is to match the branch name as a variable in Bamboo, please see the example below ( here we are matching the branch name which starts with issue keyword )
^.*issue.*

          

      2. Another possible use case is during the creation of plan branches in Bamboo ( here we are creating a new branch in Bamboo when the source repository branch matches the keyword starting with text pssrv )

         

Please refer below 2 pages for generic syntax for regex matching

Pattern matching reference

Oracle regex pattern matching


Last modified on Feb 10, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.