aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2022-07-08 23:51:33 +0200
committerMagnus Granberg <zorry@gentoo.org>2022-07-08 23:51:33 +0200
commit2eaefa1a0df4c7153f04d4784bdc78f68faf29d4 (patch)
tree326905ef6a3e3e03727f42a2f5fb4bbf319d4b45 /buildbot_gentoo_ci/config/reporters.py
parentChange title_issue and title_phase (diff)
downloadtinderbox-cluster-2eaefa1a0df4c7153f04d4784bdc78f68faf29d4.tar.gz
tinderbox-cluster-2eaefa1a0df4c7153f04d4784bdc78f68faf29d4.tar.bz2
tinderbox-cluster-2eaefa1a0df4c7153f04d4784bdc78f68faf29d4.zip
Add support for GitLabStatusPush
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'buildbot_gentoo_ci/config/reporters.py')
-rw-r--r--buildbot_gentoo_ci/config/reporters.py26
1 files changed, 23 insertions, 3 deletions
diff --git a/buildbot_gentoo_ci/config/reporters.py b/buildbot_gentoo_ci/config/reporters.py
index 1bfb70f..d37dd2a 100644
--- a/buildbot_gentoo_ci/config/reporters.py
+++ b/buildbot_gentoo_ci/config/reporters.py
@@ -1,8 +1,9 @@
-# Copyright 2021 Gentoo Authors
+# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-#from buildbot import reporters as buildbot_reporters
-from buildbot.reporters.generators.build import BuildStatusGenerator
+from buildbot.plugins import util
+from buildbot.reporters.gitlab import GitLabStatusPush
+from buildbot.reporters.generators.build import BuildStatusGenerator, BuildStartEndStatusGenerator
from buildbot.reporters.message import MessageFormatter
from buildbot_gentoo_ci.reporters import irc
@@ -39,7 +40,26 @@ irc_reporter = irc.IRCStatusPush("irc.libera.chat", "gci_test",
generators=ircGenerators(),
noticeOnChannel=True
)
+#gitlab
+def gitlabGenerators():
+ builders = [
+ #'run_build_request',
+ 'parse_build_log'
+ ]
+ return [
+ BuildStartEndStatusGenerator(
+ builders=builders
+ )
+ ]
+gitlab_gentoo_org = GitLabStatusPush(token=util.Secret("gitlabToken"),
+ #context= util.Interpolate('Buildbot %(prop:buildername)s'),
+ baseURL='https://gitlab.gentoo.org',
+ generators=gitlabGenerators(),
+ #debug=True,
+ verbose=True
+ )
def gentoo_reporters(r=[]):
r.append(irc_reporter)
+ r.append(gitlab_gentoo_org)
return r