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 <jo@mein.io>
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",