"Account, repository or branch doesn't exist" error when using "atlassian/trigger-pipeline" pipe
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
When using older versions (< 5.7.0) of the atlassian/trigger-pipeline pipe - you may encounter errors when attempting to execute your build
Environment
Bitbucket Cloud Pipelines
Diagnosis
Some variant of the following error message is encountered when executing your build, causing it to fail:
1
"Account, repository or branch doesn't exist"
Cause
The incorrect variable definition has been used
The branch or repository has been entered incorrectly or does not exist
Solution
When attempting to use a pipe, you should always refer to its relevant pipe documentation to determine the correct variables to use in your YAML configuration
The newer version of the pipe atlassian/trigger-pipeline:5.7.0 was updated so that "BRANCH_NAME" has been changed to "REF_NAME" - this is the correct configuration to use.
Example:
1
2
3
4
5
6
7
8
9
10
script:
- pipe: atlassian/trigger-pipeline:5.7.0
variables:
REPOSITORY: '<string>'
# BITBUCKET_USERNAME: '<string>' # Optional
# BITBUCKET_APP_PASSWORD: '<string>' # Optional
# BITBUCKET_ACCESS_TOKEN: '<string>' # Optional
# ACCOUNT: '<string>' # Optional
# REF_TYPE: '<string>' # Optional #branch
# REF_NAME: '<string>' # Optional #branch name
If you have correctly defined the pipe in your YAML configuration based on the above YAML snippet - but you are still encountering issues, please ensure that you have entered the branch/repository name correctly.
If the above instructions do not assist in resolving the issue, please raise asupport ticketor raise acommunity support ticketfor further assistance with this.
Was this helpful?