The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events