[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible coreboot/openwrt/netbsd: preserve images and css when updating the results
Holger Levsen
holger at moszumanska.debian.org
Wed Dec 9 09:53:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit e24a1d6d89322ac01d7109b75863bf6165928460
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Dec 9 10:53:29 2015 +0100
reproducible coreboot/openwrt/netbsd: preserve images and css when updating the results
---
bin/reproducible_html_rsync_remote_results.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_html_rsync_remote_results.sh b/bin/reproducible_html_rsync_remote_results.sh
index d3df7b1..4e7cf76 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list