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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why receive 400 Bad request for executing custom pipeline API

This is what I execute:

curl -X POST -i -u '<username>:<password>' -H 'Content-Type: application/json'<workspace>/<slug>/pipelines/ -d '
"target": {
"type": "pipeline_ref_target",
"ref_type": "branch",
"ref_name": "master",
"selector": {
"type": "custom",
"pattern": "increment-build-version"

This is what I receive:

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

But, I have a bitbucket-pipelines.yml file and custom pipelines defined like so:

- step:
name: New Test Flight
image: atlassian/default-image:2
- ./

- step:
name: Increment Build Version
image: atlassian/default-image:2
- git remote set-url origin ${BITBUCKET_GIT_SSH_ORIGIN}
- ./

1 answer

The error message is not specifically meaning that the bitbucket-pipelines.yml file would not be there, it does also mean that the pipeline selected is not in that file (at refs/heads/master on the Bitbucket remote).

The pipeline "custom/increment-build-version" according to the yaml you posted can not be found.

I'd assume a misnomer and the pipeline is "custom/increment-build-number" instead (version -> number).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

111 views 1 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you