Caution

Buildbot no longer supports Python 2.7 on the Buildbot master.

2.5.14.3. BitbucketServerPRCommentPush

from buildbot.plugins import reporters

ss = reporters.BitbucketServerPRCommentPush('https://bitbucket-server.example.com:8080/',
                                            'bitbucket_server__username',
                                            'secret_password')
c['services'].append(ss)

BitbucketServerPRCommentPush publishes a comment on a PR using Bitbucket Server REST API.

BitbucketServerPRCommentPush(base_url, user, password, messageFormatter=None, verbose=False, debug=None, verify=None, mode=('failing', 'passing', 'warnings'), tags=None, builders=None, schedulers=None, branches=None, buildSetSummary=False, generators=None):

The following parameters are accepted by this reporter:

base_url

(string) The base url of the Bitbucket server host.

user

(string) The Bitbucket server user to post as. (can be a Secret)

password

(string) The Bitbucket server user’s password. (can be a Secret)

generators

(list) A list of instances of IReportGenerator which defines the conditions of when the messages will be sent and contents of them. See Report Generators for more information.

verbose

(boolean, defaults to False) If True, logs a message for each successful status push.

debug

(boolean, defaults to False) If True, logs every requests and their response

verify

(boolean, defaults to None) If False, disables SSL verification for the case you use temporary self signed certificates. Default enables SSL verification.

Additionally, the following deprecated parameters are supported. They work in the same way as in the MailNotifier, see above for their documentation.

  • subject

  • mode

  • builders

  • tags

  • schedulers

  • branches

  • buildSetSummary

  • messageFormatter

  • watchedWorkers (differently from MailNotifier, the default is None)

  • messageFormatterMissingWorker

Note

This reporter depends on the Bitbucket server hook to get the pull request url.