Hello!
Since we cannot queue pipelines in bitbucket, we have created our own queue using Jenkins, and thus we control the pipelines in Bitbucket through the API. Since we do not want the pipeline to trigger automatically, we use a custom pipeline.
It is simple to trigger the custom pipeline for a specific commit, but we want to do it for a pull request. However when trying to post something like this:
{ "target": {
"type": "pipeline_pullrequest_target",
...
"selector": { "type": "custom", "pattern": "my-custom-pipeline" }
}
}It will actually replace the selector part with { "type": "pull-requests", "pattern": "**" }, so that the wrong pipeline is triggered.
Is there any way of triggering a custom pipeline for a pull request through the API?
/Rickard