Do you have a step-by-step guide on how to get the Azure DevOps Pipeline status reflected in Bitbucket?
Thx. in advance.
Hi @evkrj
You should be able to use any CI tool to update build status in Bitbucket. In order to achieve that you will need to call Bitbucket REST API from Azure DevOps build with the right parameters.
This is an example of a call that will set a commit with a successful status:
curl -X POST -is -u <USER_NAME>:<APP_PASSWORD> \
-H 'Content-Type: application/json' \
https://api.bitbucket.org/2.0/repositories/<USER_NAME>/<REPOSITORY_SLUG>/commit/<COMMIT>/statuses/build \
-d '{
"state": "SUCCESSFUL",
"name": "Build key - description",
"url": "https://<AZURE_URL_REFERENCE>",
"description": "A general description"
}'
Reference: Bitbucket API.
General details about the build status feature: Introducing the build status API for Bitbucket Cloud - Bitbucket.
I hope that brings you some ideas on how to implement this in your scenario.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.