monitor/log: show build root and runner

In the `LogMonitor`, print the build root and its runner for each
pipelie. That could help identifying issues with runners.
This commit is contained in:
Christian Kellner 2022-09-26 15:48:39 +00:00
parent 9480009189
commit 1c81d1e966

View file

@ -102,6 +102,13 @@ class LogMonitor(BaseMonitor):
self.out.write(f"Pipeline {pipeline.name}: {pipeline.id}")
self.out.term(vt.reset)
self.out.write("\n")
self.out.write("Build\n root: ")
if pipeline.build:
self.out.write(pipeline.build)
else:
self.out.write("<host>")
self.out.write(f"\n runner: {pipeline.runner.name} ({pipeline.runner.exec})")
self.out.write("\n")
def stage(self, stage):
self.module(stage)