Pipelines manual build needs git branch

I am executing Pipelines build manually. It appears the only way to do this is to select a commit and run a pipeline. This leads to a checkout of the commit rather than the branch it is on (if only one). I need to apply the current branch name to assets that are produced. There doesn't seem to be any way to determine the branch as the repo is checked out with a "detached HEAD". The BITBUCKET_BRANCH variable is empty.

Is there (could there be) a way to kick off a manual build from a branch rather than a commit?

Thanks.

1 answer

This widget could not be displayed.

Hi Daryl,

The official docs are outdated, but you can actually manually run a pipeline for a branch.

Just navigate to your list of Branches -> click the 3 dots icon -> Run pipeline for a branch

Hope this helps!

Davina

Ah, thank you. That was difficult to find. I was looking in the upper right of the page after having clicked into the branch. The elipsis of interest appears upon rollover in the list of branches at the right of each row.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

135 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you