You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
As the title, I want to receive the results from AWS CodeBuild to Bitbucket Pipeline,
For example, I want to know some results of CodeBuild (success, failure) at Bitbucket
Is there a way to do that?
Hello @Eunbi LEE ,
Thank you for reaching out to the Community!
My understanding is that you use AWSCodeBuild to build your code hosted in Bitbucket Cloud, and you would like the build status on AWS to be reported back into Bitbucket. If that is the case, AWS has the below article with steps on how to build that integration :
This should allow you to have the AWS build status posted back to Bitbucket Cloud
Thank you, @Eunbi LEE !
Patrik S
Thank you for answer,
And yes, I already read this article but furthermore, I want to send build status of AWS Codebuild not CodePipeline to Bitbucket,
Is there a way with REST API ?
Thank you @Patrik S
Eunbi LEE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Eunbi LEE ,
To create/update the build status for a commit, you can use the following Bitbucket API endpoints :
curl -X POST -u username:app_password https://api.bitbucket.org/2.0/repositories/my-workspace/my-repo/commit/e10dae226959c2194f2b07b077c07762d93821cf/statuses/build/ -H 'Content-Type: application/json' -d '{ "key": "MY-BUILD", "state": "SUCCESSFUL", "description": "42 tests passed", "url": "https://www.example.org/my-build-result" }'
The valid values for state are FAILED, SUCCESSFUL, INPROGRESS, STOPPED.
curl -X PUT -u username:app_password https://api.bitbucket.org/2.0/repositories/my-workspace/my-repo/commit/e10dae226959c2194f2b07b077c07762d93821cf/statuses/build/{key} -H 'Content-Type: application/json' -d '{"state": "FAILED", "description": "10 tests failed", "url": "https://www.example.org/my-build-result" }'
You can find more details about the build status endpoints in our API reference documentation :
Thank you, @Eunbi LEE !
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.
You're very welcome!
Feel free to reach out to Community again if you ever need help in the future :)
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.