From: Jo-Philipp Wich Date: Sat, 10 Nov 2018 13:05:00 +0000 (+0100) Subject: phase2: reset error log list on each build X-Git-Tag: v1~118 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=87f736d55b080ae7d141071d91fa58f4a800cef8;p=buildbot.git phase2: reset error log list on each build The OpenWrt buildroot only ever appends to error.txt, but never clears it. This causes slaves with persistent build environments to keep uploading build logs of suceeding packages over and over, even if they've long been fixed already. Signed-off-by: Jo-Philipp Wich --- diff --git a/phase2/master.cfg b/phase2/master.cfg index 150e961..9ce8f50 100644 --- a/phase2/master.cfg +++ b/phase2/master.cfg @@ -336,6 +336,14 @@ for arch in arches: workdir = "build/sdk", command = ["./scripts/feeds", "install", "-a"])) + factory.addStep(ShellCommand( + name = "logclear", + description = "Clearing failure log list", + workdir = "build/sdk", + command = ["rm", "-f", "logs/package/error.txt"], + haltOnFailure = False + )) + factory.addStep(ShellCommand( name = "compile", description = "Building packages",