nix/coordinator: enable reporting to Gerrit

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-03-03 02:32:05 +01:00
parent 2bcc0ee4e9
commit 9a67a1f2cc

View file

@ -724,15 +724,17 @@ class GerritNixConfigurator(ConfiguratorBase):
config["change_source"] = self.gerrit_change_source
config["workers"].append(worker.LocalWorker(SKIPPED_BUILDER_NAME))
# config["services"].append(
# reporters.GerritStatusPush(self.gerrit_server, self.gerrit_user,
# reviewCB=gerritReviewCB,
# reviewArg=self.url,
# startCB=gerritStartCB,
# startArg=self.url,
# summaryCB=gerritSummaryCB,
# summaryArg=self.url)
# )
config["services"].append(
reporters.GerritStatusPush(self.gerrit_server, self.gerrit_user,
port=2022,
identity_file='/var/lib/buildbot/master/id_gerrit',
reviewCB=gerritReviewCB,
reviewArg=self.url,
startCB=gerritStartCB,
startArg=self.url,
summaryCB=gerritSummaryCB,
summaryArg=self.url)
)
systemd_secrets = secrets.SecretInAFile(
dirname=os.environ["CREDENTIALS_DIRECTORY"],