aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2022-07-28 13:35:00 +0200
committerMagnus Granberg <zorry@gentoo.org>2022-07-28 13:35:00 +0200
commit795fec9c1b421559ade5b82fc7232384d31a02d2 (patch)
treeed6cfcd1d9fbe32832ad5654dd50511ec8a9b35a /buildbot_gentoo_ci
parentAdd support for gitlab/github project name in project db (diff)
downloadtinderbox-cluster-795fec9c1b421559ade5b82fc7232384d31a02d2.tar.gz
tinderbox-cluster-795fec9c1b421559ade5b82fc7232384d31a02d2.tar.bz2
tinderbox-cluster-795fec9c1b421559ade5b82fc7232384d31a02d2.zip
Add support branch,event and gitlab/github project name on IRC reporter
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'buildbot_gentoo_ci')
-rw-r--r--buildbot_gentoo_ci/config/reporters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildbot_gentoo_ci/config/reporters.py b/buildbot_gentoo_ci/config/reporters.py
index d37dd2a..9832305 100644
--- a/buildbot_gentoo_ci/config/reporters.py
+++ b/buildbot_gentoo_ci/config/reporters.py
@@ -8,9 +8,9 @@ from buildbot.reporters.message import MessageFormatter
from buildbot_gentoo_ci.reporters import irc
irc_template = '''{% set resultsList = ["\x0303SUCCESS", "\x0308WARNINGS", "\x0304FAILURE"] %}\
-{{ "\x02" }}{{ build['properties']['cpv'][0] }}{{ "\x02" }} {{ "\x0303" }}repo/{{ projects }}{{ "\x03" }} \
+{{ "\x02" }}{{ build['properties']['cpv'][0] }}{{ "\x02" }} {{ "\x0303" }}repo/{{ projects }}:{{ build['properties']['branch'][0] }}{{ "\x03" }} \
{{ build['properties']['revision'][0]|truncate(10, True) }} {{ "\x0302" }}{{ build['properties']['owners'][0][0] }}{{ "\x03" }} \
-{{ build['properties']['project_data'][0]['name'] }} \
+{{ build['properties']['event'][0] }} {{ projects }}:{{ build['properties']['project_data'][0]['name'] }} \
{{ "\x02" }}{{ "Build: "}}{{ resultsList[build['results']] }}{{ "\x03" }}{{ "\x02" }} {{ "\x0312" }}{{ build_url }}{{ "\x03" }}\
'''