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
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'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.