Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to create branch

Tom January 29, 2024

When I try to create a branch with these info, error occured.

- Branch Type :Custom

- name:Check/20240113

The error message is as follows:    "Failed to create branch."

Invalid branch name.bugfix/20240113 does not match regex ^(develop|(release|feature|work)/[0-9a-zA-Z_/.\-]+)

Could anyone tell me the reason?

Best regards.

Tom

1 answer

2 votes
Aman Shrivastava
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2024

Hi Tom,

Welcome to the Atlassian community.

I suspect the Bitbucket administrator has configured some restrictions on the naming convention on the branch using third-party plugins. The regex used in the rule is "^(develop|(release|feature|work)/[0-9a-zA-Z_/.\-]+)".


To help you align your branch name with the rule, you may decode the regex from any of the sites available on the Internet.  I am providing you a screenshot of the decoded version of regex. One of the examples of the branch name would be release/20240113.
Screenshot 2024-02-05 at 3.51.48 PM.png

As an alternative, you can get in touch with the Bitbucket administrator at your company to request an exclusion or learn more about the limitations on branch creation.

Regards,
Aman

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events