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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Run the trigger pipe to trigger pipeline in Repository owned by a team

Hi all, I am trying to run the Atlassian 'Bitbucket trigger pipeline' v4.1.2, The idea is that this pile will call a bunch of other pipelines in different repositories. I am struggling to get the syntax correct(or the problem is somewhere else). All the Repos are part of a project that belongs to a team. According to the examples here, I must enter the Team's name in the 'Account' option, then the Repository Name in the 'Repository' option and the branch name respectfully. Of course, the user and password should also be specified. However, no matter how I specify the Account, Repository and Branch all I get is the error:

'Account, repository or branch doesn't exist.'

Can someone help with using this pipe in a Team scenario?

Thanks in advance for the support.

2 answers

@Alexander Zhukov 

The answers:

1. The pipelines are enabled and running fine when executed from the repository.

2.  I am setting it up directly in the master and also targetting the master branches in the other repositories as well.

3. I copied all the names to avoid spelling mistakes, but I believe that the set up is what is causing the problems. Since the repositories are owned by a team I am entering the team's name in the Account field. My variables are setup like this:

BITBUCKET_USERNAME: My email (I am using to login to bitbucket and have full access), set up in a secured repository variable

BITBUCKET_APP_PASSWORD: The pass I use to log into bitbucket. set up in a secured repository variable

REPOSITORY: The name of the Repository with single quotes

ACCOUNT: The name of the team, in single quotes.

CUSTOM_PIPELINE_NAME: The name of the custom pipeline I want to start.

There are also pipeline variables, but I don't think they are even read.

Ok, I think I know what is the problem. The value of the BITBUCKET_USERNAME should be your account name, as displayed in your profile. This is not the email that you use to login:

Bitbucket user that will trigger the pipeline. Note, that this should be an account name, not the email.

Also, you should use your personal password as BITBUCKET_APP_PASSWORD. You should create a separate app password as described here https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html

Sorry, for the deplayed answer. With your help I managed to fix all the mistakes and the pipeline is working fine now. Thank you for the support, @Alexander Zhukov !

Like Alexander Zhukov likes this

Good morning Viktor,

 

What should i put on behalf of the account? can you give me an example, please?

 

Thanks!

Good morning Henrique,

The account is actually the name of the workspace, in which the given repository is positioned. You can find the name of the workspace by clicking on the user icon in the lower-left corner of the screen, then selecting 'All workspaces'. A list of all workspaces, you have access to is loaded, then you just need to know in which workspace(if more than one) lies the given repository. 

Hope that helps.

0 votes

Hi @Viktor Minkovski lets try to figure out what might be wrong:

  1. Did you enable pipelines in the repository in which you want to trigger the pipeline?
  2. Did you configure the bitbucket-pipelines.yml correctly for you branch?
  3. Obvious things like account and repository name spelling.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

520 views 16 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you