from buildbot.plugins import reporters
ss = reporters.BitbucketServerCoreAPIStatusPush('https://bitbucketserver.example.com:8080/',
auth=('bitbucketserver_username',
'secret_password'))
c['services'].append(ss)
Or using Bitbucket personal access token
from buildbot.plugins import reporters
ss = reporters.BitbucketServerCoreAPIStatusPush('https://bitbucketserver.example.com:8080/',
token='MDM0MjM5NDc2MDxxxxxxxxxxxxxxxxxxxxx')
c['services'].append(ss)
BitbucketServerCoreAPIStatusPush
publishes build status using BitbucketServer Core REST API into which it was integrated in Bitbucket Server 7.4. The build status is published to a specific commit SHA in specific repository in Bitbucket Server with some additional information about reference name, build duration, parent relationship and also possibly test results.
It requires txrequests package to allow interaction with Bitbucket Server REST API.