buildbot plugin for using matrix for notifications
Project description
Buildbot Matrix Plugin
This Plugin for buildbot adds a reporter which sends notifications to a specified matrix room.
Inspired by buildbot-gitea by lab132.
Installation
pip install buildbot_matrix
This installs itself into buildbot, no extra imports required.
Setup
Matrix Bot
- Create a new Matrix user which will be used to send notifications.
- Set a meaningful display name for the user. For Example
Buildbot Notifications
- Get an access token for this user.
- Add the user to the room you want the notifications to be in.
Buildbot
- Add this to the buildbot configuration:
c['services'] = [
reporters.MatrixStatusPush(
'https://homeserver.example.com',
'ROOM_ID:example.com',
'BOT_ACCESS_TOKEN',
verbose=True
)
]
- Change the URL of the homeserver to the homeserver you want to use.
- Replace
BOT_ACCESS_TOKEN
with the acces token of the matrix user, this can be a buildbot secret. - Replace
ROOM_ID
with the id of the matrix room the bot should send the notifications to. Replace the!
at the beginning with%21
.
Personalizing
You can modify the notifications by changing the following parameters:
Parameter | Description | Default |
---|---|---|
startDescription |
Short description when a build started | Build started. |
endDescription |
Short description when a build ended | Build done. |
context |
Identifier to give messages a context | Interpolate('buildbot/%(prop:buildername)s') |
context_pr |
Identifier to give messages a context, used on pull requests | Interpolate('buildbot/pull_request/%(prop:buildername)s') |
warningAsSuccess |
Treat warnings as build success | False |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
buildbot-matrix-0.0.1.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file buildbot-matrix-0.0.1.tar.gz
.
File metadata
- Download URL: buildbot-matrix-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 012a040f46f22b38a2a7432d6f38397ccbeec601f31d79512531bc21d726a48e |
|
MD5 | fcab1786ab4c662d398dadabd4349ff6 |
|
BLAKE2b-256 | 4b19a59fe7df17a2541f90241c797e33b67c8e8de006ba69d5c33cb6ede66ded |
File details
Details for the file buildbot_matrix-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: buildbot_matrix-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5c63d9385b369708525465f80258b871adec3b930d482f06ba7a84e09adf764 |
|
MD5 | 4f5299b102270a65d2d53912ccc24a49 |
|
BLAKE2b-256 | ba4d6980582d66311191f80cb8cc1e9a9f49de9eae7f685f26d04f20a77d3e5a |