The old c['logHorizon'] way of configuring is not supported anymore, we
should use JanitorConfigurator. A new __Janitor builder will be created
to help keep an eye on the cleanup activities and for that we need
buildbot-worker package as well.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
"buildbot-waterfall-view==$BUILDBOT_VERSION" \
"buildbot-console-view==$BUILDBOT_VERSION" \
"buildbot-grid-view==$BUILDBOT_VERSION" \
+ "buildbot-worker==$BUILDBOT_VERSION" \
pyOpenSSL \
service_identity
import subprocess
import configparser
+from datetime import timedelta
+
from buildbot import locks
from buildbot.changes import filter
from buildbot.changes.gitpoller import GitPoller
c['collapseRequests'] = True
# Reduce amount of backlog data
-c['buildHorizon'] = 30
-c['logHorizon'] = 20
+c['configurators'] = [util.JanitorConfigurator(
+ logHorizon=timedelta(days=3),
+ hour=6,
+)]
####### CHANGESOURCES
import subprocess
import configparser
+from datetime import timedelta
+
from buildbot import locks
from buildbot.changes import filter
from buildbot.changes.gitpoller import GitPoller
c['collapseRequests'] = True
# Reduce amount of backlog data
-c['buildHorizon'] = 30
-c['logHorizon'] = 20
+c['configurators'] = [util.JanitorConfigurator(
+ logHorizon=timedelta(days=3),
+ hour=6,
+)]
####### CHANGESOURCES