Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Show Azure DevOps Build Pipeline Status in Bitbucket

evkrj
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 24, 2019

Do you have a step-by-step guide on how to get the Azure DevOps Pipeline status reflected in Bitbucket?

Thx. in advance.

1 answer

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 25, 2019

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events