aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-04 12:39:42 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-04 12:39:42 +0000
commitcc4bc40b28c68913f1221c01e1e6e5c8936035bb (patch)
treec51a7cebb1f92b5775a2c1dde75dc6b73eeec24f
parent99132fb40b2845ed4fb9e08341cd91a920dfdc98 (diff)
downloadyocto-autobuilder2-cc4bc40b28c68913f1221c01e1e6e5c8936035bb.tar.gz
yocto-autobuilder2-cc4bc40b28c68913f1221c01e1e6e5c8936035bb.tar.bz2
yocto-autobuilder2-cc4bc40b28c68913f1221c01e1e6e5c8936035bb.zip
builders: At the end of triggers builds, cleanup the shared repo directory
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--builders.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/builders.py b/builders.py
index ef0e049..294f417 100644
--- a/builders.py
+++ b/builders.py
@@ -304,6 +304,13 @@ def create_parent_builder_factory(buildername, waitname):
"-r", get_publish_name
],
name="Send QA Email"))
+
+
+ factory.addStep(steps.ShellCommand(
+ command=[clob, util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir))],
+ haltOnFailure=True,
+ name="Clobber shared repo dir"))
+
return factory
builders.append(util.BuilderConfig(name="a-quick", workernames=config.workers, factory=create_parent_builder_factory("a-quick", "wait-quick"), env=extra_env))