From 3dc27d361a6f6153db07638a82bcb6bac30534fb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 21 Jun 2019 08:56:24 +0200 Subject: [PATCH] phase2: improve source archive uploading Only upload source archives which have been updated sicne the begin of the build. Signed-off-by: Jo-Philipp Wich --- phase2/master.cfg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/phase2/master.cfg b/phase2/master.cfg index b3c1574..5a3f005 100644 --- a/phase2/master.cfg +++ b/phase2/master.cfg @@ -478,11 +478,19 @@ for arch in arches: )) if rsync_src_url is not None: + factory.addStep(ShellCommand( + name = "sourcelist", + description = "Finding source archives to upload", + workdir = "build/sdk", + command = "find dl/ -maxdepth 1 -type f -not -size 0 -not -name '.*' -newer ../sdk.archive -printf '%f\\n' > sourcelist", + haltOnFailure = True + )) + factory.addStep(ShellCommand( name = "sourceupload", description = "Uploading source archives", workdir = "build/sdk", - command = ["rsync", "-4", "--progress", "--checksum", "--delay-updates", + command = ["rsync", "--files-from=sourcelist", "-4", "--progress", "--checksum", "--delay-updates", WithProperties("--partial-dir=.~tmp~%s~%%(slavename)s" %(arch[0])), "-avz", "dl/", "%s/" %(rsync_src_url)], env={'RSYNC_PASSWORD': rsync_src_key}, haltOnFailure = False, -- 2.30.2