Hi,
Where can I get the list of statuses that I can filter for /pipelines/ endpoint?
I wanted to filter pipeline status that is queued/pending, in progress, and building.
As of now, I only know the endpoint is accepting status=BUILDING.
Regards,
Nazreen
Hi, @NazreenAR!
Thanks for your question! I confirmed that currently, this information is not available on our API documentation, so I went ahead and created a feature request to update this info:
If you are not familiar with our Feature Request Policy, you can read more about it here.
This is the list of statuses that you can filter for /pipelines/ endpoint:
Successful: status=PASSED,SUCCESSFUL
Failed: status=FAILED,ERROR
Running: PENDING,BUILDING,IN_PROGRESS
Paused: status=PAUSED,HALTED
Stopped: status=STOPPED,SKIPPED
I hope this helps, but do let me know if you have any questions.
Kind regards,
Caroline
Hey @Ben Orgil ,
Please find an example below, which includes all the possible statuses for running pipelines :
curl -X GET -u bitbucket_username:app_password "https://api.bitbucket.org/2.0/repositories/<workspace>/<repository>/pipelines/?status=PENDING&status=BUILDING&status=IN_PROGRESS"
This should return only the pipelines that are in progress. You can change the URL to filter for the different statuses that @Caroline R has outlined in the previous answer.
Hope that helps! Let me know if you run into any issues.
Thank you, @Ben Orgil .
Kind regards,
Patrik S
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.