Provide build and deploy status for BitBucket repos
Essentially a copy of this issue for GitHub repos, but for BitBucket.
Is your feature request related to a problem? Please describe. I guess I could manually call the BitBucket endpoint to update the status in my build script, but I feel like this should be integrated by default when connecting a BitBucket repository to the Amplify Console.
Describe the solution you'd like Automatic build status updates to my repository when my builds/deploys are carried out.
Additional context https://developer.atlassian.com/server/bitbucket/how-tos/updating-build-status-for-commits/
Thanks for a great tool so far!
Hi @ankhuve.
Thanks for reporting. We currently don't send build updates back to our source providers.We have added this as a feature request in our backlog.
Hi @ankhuve.
Thanks for reporting. We currently don't send build updates back to our source providers.We have added this as a feature request in our backlog.
Thanks for your reply @abhi7cr !
I have another question then, perhaps you can help me answer it. I'm now currently trying to report the build statuses to BitBucket using their API, but I can't find a way to report failed builds when they happen as it seems Amplify terminates the whole build if something goes wrong.
Is there some way to catch a failed build and run commands? Something like a "onError" stage would be useful!
@ankhuve Sorry missed this! We currently don't have an onError hook. I will add this as a separate item in our backlog.
@ankhuve Sorry missed this! We currently don't have an onError hook. I will add this as a separate item in our backlog.
Great, thanks! Looking forward to it as our failed builds now still show as ongoing in BitBucket :slightly_smiling_face:
I’d also like to see this feature. In the mean-time, I’ve come up with the below workaround.
- Replace build/test command with custom Node script
- Inside the custom script, execute the build/test command as a child process (child_process.exec)
- In the exec callback, check for the presence of an error and update BitBucket accordingly using their API
- Exit the process using the code from the error, or 0 if no error occurred
@tgwilkins Any example code you're comfortable sharing?
@tgwilkins Any example code you're comfortable sharing?
@davad I wrote a blog post on it as it happens: Notifying BitBucket of your Amplify Build Status
@tgwilkins Any example code you're comfortable sharing?
@davad I wrote a blog post on it as it happens: Notifying BitBucket of your Amplify Build Status
Dead end. @tgwilkins can you please update blog url?
@tgwilkins Any example code you're comfortable sharing?
@davad I wrote a blog post on it as it happens: Notifying BitBucket of your Amplify Build Status
Dead end. @tgwilkins can you please update blog url?
Thanks for letting me know, looks like my DNS got wiped! It should be back up now.
Do we have any update on this?
Any updates on this? @abhi7cr
Any updates?
Still no updates?
Hi, it's been a few years, any update on this?