Mattermost status reporter for Buildbot
Project description
Mattermost status reporter for Buildbot
Install:
pip install buildbot-mattermost-reporter
Usage example in Buildbot master.cfg:
from buildbot.plugins import reporters
c['services'].append(
reporters.MattermostStatusPush(
webhook_url="https://mattermost.example.com/hooks/hookidstring",
),
)
Parameters to MattermostStatusPush:
MattermostStatusPush(
webhook_url, channel=None, icon_url=None, icon_emoji=None,
timezone=None, username_fn=None, buildstatusgenerator_kwargs=None,
generators=None,
**kwargs)
webhook_url(string): Mattermost Webhook URL given when webhook is createdchannel(string): See Mattermost incoming webhooks docsicon_url(string): See Mattermost incoming webhooks docsicon_emoji(string): See Mattermost incoming webhooks docstimezone(datetime.tzinfo): Convert timestamps in messages to a timezone, if set. Otherwise timestamps are UTC. Concretetzinfoobjects could be created with dateutil, which Buildbot has as dependency.username_fn(callable): Callable that takes a string argument, which is one of the individuals in the builds owners property, and returns a Mattermost username. The username is used for failing builds, where the message includes a line like@owner1, @owner2, .... By default a function is used that assumes that each owner is an e-mail address and returns the part before @, i.e.user@example.comreturnsuser. An example where failing builds would notify the whole channel instead would beusername_fn=lambda _: "channel".buildstatusgenerator_kwargs(dict): Any extra keyword arguments toreporters.BuildStatusGenerator, e.g.buildstatusgenerator_kwargs={'report_new': True}.generators(list): To override generator created byMattermostStatusPushand format Mattermost messages in a custom manner.**kwargs: Any extra arguments toreporters.HttpStatusPush.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file buildbot-mattermost-reporter-0.2.0.tar.gz.
File metadata
- Download URL: buildbot-mattermost-reporter-0.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa41a7f9c9b1e62593961ef42df5f912cf9c362237163ed65204f0623d05990c
|
|
| MD5 |
c57cc075e2b66bce65ea0a57c80d3769
|
|
| BLAKE2b-256 |
0b49949344265714aa5d1fc7b989b4c5fd5e8b536504784437e7e73bdb3aa457
|
File details
Details for the file buildbot_mattermost_reporter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: buildbot_mattermost_reporter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c434625793e11ef2af56c91a6a3a114e23c3d7926a71b96ccb0249ed274810b
|
|
| MD5 |
b36d6663e4d465523f4221066d574174
|
|
| BLAKE2b-256 |
81083f4e31b5d21a8c4b823651bd602652e4d5823a11c5b9bcd510f86784ab20
|