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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good morning Viktor,
What should i put on behalf of the account? can you give me an example, please?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Viktor Minkovski lets try to figure out what might be wrong:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.