Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to check branch name length in BitBucket pipeline?

arielr December 30, 2020

Hi all,

I want to limit my branch name length.

To do that I thought to add a step that will check the branch name length.

The step should failed if the branch name length will cross some const limit.

Does anyone know how can I do it?

 

Thanks :)

1 answer

0 votes
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 20, 2021

@arielr pipelines support bash syntax. So you can check out in bash doc, how to find length and use it in your pipeline script section

Regards, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events