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.
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:
Regards,
Mark C
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.