You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
This is what I execute:
curl -X POST -i -u '<username>:<password>' -H 'Content-Type: application/json' https://api.bitbucket.org/2.0/repositories/<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:
pipelines:
custom:
new-start-testflight:
- step:
name: New Test Flight
image: atlassian/default-image:2
script:
- ./prepTestFlight.sh
increment-build-number:
- step:
name: Increment Build Version
image: atlassian/default-image:2
script:
- git remote set-url origin ${BITBUCKET_GIT_SSH_ORIGIN}
- ./incrementBuildVersion.sh
A little bit late, but in my case, the error was caused due to the custom pipeline didn't exist in the specified branch.
See this other thread for reference https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-trigger-run-fails/qaq-p/2024388
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).
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.