summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-09 10:53:29 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-09 10:53:29 +0100
commite24a1d6d89322ac01d7109b75863bf6165928460 (patch)
tree3b279892e8c03d0e49161078db4994bc954ba7b5
parentc2a4e2555030e53e8b2c4efd738716a3d873418d (diff)
downloadjenkins.debian.net-e24a1d6d89322ac01d7109b75863bf6165928460.tar.xz
reproducible coreboot/openwrt/netbsd: preserve images and css when updating the results
-rwxr-xr-xbin/reproducible_html_rsync_remote_results.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh
index d3df7b19..4e7cf76e 100755
--- a/bin/reproducible_html_rsync_remote_results.sh
+++ b/bin/reproducible_html_rsync_remote_results.sh
@@ -15,10 +15,16 @@ rsync_remote_results() {
for PROJECT in coreboot openwrt netbsd ; do
echo "$(date -u) - Starting to rsync results for '$PROJECT'."
local RESULTS=$(mktemp --tmpdir=$TEMPDIR -d reproducible-rsync-XXXXXXXXX)
+ # copy the new results from build node to webserver node
rsync -r -v -e ssh profitbricks-build3-amd64.debian.net:$BASE/$PROJECT/ $RESULTS
- mv $BASE/$PROJECT ${RESULTS}.tmp
chmod 775 $RESULTS
+ # move old results out of the way
+ mv $BASE/$PROJECT ${RESULTS}.tmp
+ # preserve images and css
+ find ${RESULTS}.tmp -name "*css" -o -name "*png" -o -name "*jpg" -exec cp -v {} $RESULTS/ \;
+ # make the new results visible
mv $RESULTS $BASE/$PROJECT
+ # delete the old results
rm ${RESULTS}.tmp -r
echo "$(date -u) - $REPRODUCIBLE_URL/$PROJECT has been updated."
done