Bitbucket trigger pipeline 5.1.3 throwing Error: {"error": {"message": "Bad request", "detail"

Mangesh Deshmane August 9, 2023

Hello Team,

I have 2 repos dependent on each other and I want to trigger pipeline from the parent repo of the child repo.

I am facing below error msg

Error: {"error": {"message": "Bad request", "detail": "bitbucket-pipelines.yml not found.", "data": {"key": "result-service.pipeline.yml-not-found", "arguments": {}}}}

 

I have already tried with bitbucket username & password, also with bitbucket token

script:
- pipe: atlassian/trigger-pipeline:5.1.3
variables:
BITBUCKET_ACCESS_TOKEN: $BITBUCKET_ACCESS_TOKEN
REPOSITORY: *********
REF_TYPE: 'branch'
REF_NAME: *********
WAIT: 'true'
bitbucket-pipelines.yml is already present in child repo(mifos) in master branch as well as ********* branch
Also, manually running pipeline for repo ********* is working fine, but triggering through parent repo(**) is failing
please let me know, what else I have missed if there are any pre-requisite or config changes .

1 answer

1 vote
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 10, 2023

Hi Mangesh,

I have censored sections of this request to obfuscate sensitive information as this is a public forum.

Please ensure that the branch/repo name are correctly entered as the trigger-pipelines pipe is case sensitive.

Please also double check once more that bitbucket-pipelines.yml is present on both the parent and child repositories as this is a requirement for the pipe.

If you are still having issues - I'll need to raise a ticket on your behalf as I will need to check your config/build logs.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events