The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to check branch name length in BitBucket pipeline?

arielr
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events