Hello,
I want to start a custom pipeline from another pipeline, but I want it to be activated by the same user who activated the initial pipeline on the same branch and the same repository. It looks reasonable to me that it should be possible without creating additional users and app passwords in that case. A user is running the pipeline already, right? Why does he need extra authentication? :-)
For Pull-Request reports delivery there's a possibility to send requests with curl using proxy server (http://localhost:29418) bypassing the credentials verification. Is it possible to use the same approach to trigger pipelines?
Here's what I tried (without success, but works fine when replacing proxy parameter user credentials):
curl --proxy 'http://localhost:29418'
-X POST -is -H 'Content-Type:application/json'
https://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/pipelines/
-d '{
"target":{
"type":"pipeline_ref_target",
"ref_type":"branch",
"ref_name":"$BITBUCKET_BRANCH",
"selector":{"type":"custom","pattern":"Run autotests"}}
}'
Thanks!