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

Why does the Bitbucket trigger pipe fail?

Dominik Bregovic November 11, 2022

I am following the instructions for the Bitbucket trigger pipe and get this error.

X Account, repository or branch doesn't exist.

script:
  - pipe: atlassian/trigger-pipeline:5.0.1
    variables:
       BITBUCKET_USERNAME'myUserName'           

       BITBUCKET_APP_PASSWORD'myAppPass'   

       REPOSITORY'nameOfRepo'                          

       ACCOUNT: 'workspaceName'                         

 

for USERNAME:  looked it up in personal settings and tried as Repository variable and without it (just in quotes)

for APP_PASS:  Created a App Pass and added the value into a repository variable which i then used as $myAppPass with and without quotes

for REPOSITORY:  tried severel repos but does not help

for ACCOUNT: tried with the Account and without it and i tried workspace name and workspace id 

 

When i add DEBUG: 'true' i get this additional info:

 

DEBUG: Starting new HTTPS connection (1): bitbucket.org:443
DEBUG: https://bitbucket.org:443 "GET /bitbucketpipelines/official-pipes/raw/master/pipes.prod.json HTTP/1.1" 200 None
DEBUG: Starting new HTTPS connection (1): api.bitbucket.org:443
DEBUG: https://api.bitbucket.org:443 "POST /2.0/repositories/<workspaceID>/<repository>/pipelines/ HTTP/1.1" 404 61

I want to note that i have the structure <Workspace>/<Project>/<Repository>

 

I have tried creating several app passwords, several usersnames and several repositories.

I have tried several permission settings and the permissions that are suggested.

The information from the error doesn't give me enough information to see what i am making wrong.

 

 

1 answer

1 accepted

0 votes
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 14, 2022

Hi @Dominik Bregovic

Welcome to the community.

You mentioned that you have the structure below:

<Workspace>/<Project>/<Repository>

Would you be able to confirm where did you use that structure?
Also, for the REPOSITORY variable, would you be able to confirm if you only used your repository name?

For example, if your repository URL is: https://bitbucket.org/workspace_id/repo_name/

Your variables should be:

  • BITBUCKET_USERNAME: my_bb_username
  • BITBUCKET_APP_PASSWORD: my_app_password
  • REPOSITORY: repo_name
  • ACCOUNT: workspace_id

Regards,
Mark C

Dominik Bregovic November 16, 2022

Hallo Mark,

Thank you for your response.

The URL you posted helped me to resolve my issue:

 

My repository is written with a uppercase  letter at the beginning. <Myrepo>

Because of your example i was able to see that it is all lowercase in the URL. <myrepo>

 

I changed that and everything worked fine.

Like Mark C likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events