When running a trigger in bitbucket pipelines, I get this error :
Error: {"error": {"message": "Bad request", "detail": "bitbucket-pipelines.yml not found.", "data": {"key": "result-service.pipeline.yml-not-found", "arguments": {}}}}
The repo which should trigger the pipeline is a private team repo, but I should have all the rights (I can read & write to the repo)
This is bitbucket-pipelines.yml:
pipelines:
branches:
development:
- step:
name: Trigger Boilerplate & Xperify Build (development)
script:
- pipe: atlassian/trigger-pipeline:5.0.0
variables:
BITBUCKET_USERNAME: $TRIGGER_USERNAME
BITBUCKET_APP_PASSWORD: $TRIGGER_PASSWORD
REPOSITORY: oculariumfrontendboilerplate
REF_TYPE: 'branch'
REF_NAME: 'development'
- pipe: atlassian/trigger-pipeline:5.0.0
variables:
BITBUCKET_USERNAME: $TRIGGER_USERNAME
BITBUCKET_APP_PASSWORD: $TRIGGER_PASSWORD
REPOSITORY: ocularium-frontend-xperify
REF_TYPE: 'branch'
REF_NAME: 'development'
The app password I generated has the correct permissions set
Thank you for reaching out to the community.
Based on the error message, it seems there's no recognized file (bitbucket-pipelines.yml) in the "development" branch of your private repository.
Would it be possible for you to check if the file (bitbucket-pipelines.yml) exists in the private repository "development" branch?
You can use this link to check it, just change it with your workspace ID and repository name:
https://bitbucket.org/workspace_id/repo_name/src/development/
Let me know how it goes.
Regards,
Mark C
It turns out that the problem was that the bitbucket-pipelines.yml file was present in the target repository (the repo which is getting triggered), but it didn't contain a pipeline matching the development branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Steven Delrue sorry, Im new at this, could you clarify what you mean with "a pipeline matching the development branch"?
Im having the exact same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Steven Delrue .
Also please check that you enabled pipeline support in your triggered repository.
Cheers
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.