Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pull Request Pipeline: Add a new build.

I would love to add another "build" on my own from within a pipeline.

On a pull request, the UI shows on the right top hand a summary of the builds (e.g. "3 of 3 passed")  image.png


When clicking, there is more detail:



Builds number one and two are created by Bitbucket Cloud Pipelines Plugin itself for tow piplines: Pull Request and Branch.

Build number three is from a remote service, here SonarCloud.

Similar to what SonarCloud does here, I would like to learn which APIs there are to create a build entry here from within my pipelines.

I've looked into the REST API but was a bit lost as I couldn't find anything useful. Maybe this is for Webhooks? But then I didn't know where to find Webhooks (and I guess these are the other way round).

Any pointers would be great. I can imagine it's as easy as just firing some curl calls.


1 answer

1 accepted

Thanks for the hint, this looks promising, I'll mark it as answer and hope I can give more feedback soon.

@mkleint  Thanks for your answer, this works like a charm after I found out I had an issue with the JSON payload.


/edit: Here an example curl I use. I also tried w/o any request body:


-H 'Content-Type: application/json' \
-d '
"key": "merge-ci-build",
"state": "INPROGRESS",
"name": "Merge CI Build",
"description": "Description text of the merge CI build"


The ${REVISION}  is an existing reference. I already use it to identify the pull request which caused the build on the merge successfully via the API. Can be the full hash or shortened.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

251 views 2 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you