summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kelemen <gabor.kelemen.extern@allotropia.de>2022-11-08 14:04:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-11-08 14:11:47 +0100
commit681a65b8c90b6555b2e15f20bfb9cf634ec40d11 (patch)
tree33157f5f8bfc06baceff97d6015acaab55e487b0
parent8fdbf2bca26eaa1987bdfa0ca0fc29a93a545e02 (diff)
Generate current.zip only if it is to be uploaded
Change-Id: Ie59f47b18ccceca7666006420bf8361b80e54784 Reviewed-on: https://gerrit.libreoffice.org/c/dev-tools/+/142457 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rwxr-xr-xtest-bugzilla-files/zip.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-bugzilla-files/zip.sh b/test-bugzilla-files/zip.sh
index a843ac3b..17b68488 100755
--- a/test-bugzilla-files/zip.sh
+++ b/test-bugzilla-files/zip.sh
@@ -41,9 +41,9 @@ cp ../exportCrashes.csv ../importCrash.csv ../odfundiff.csv ../validationErrors.
python analyze_logs.py
cp exportCrashes.csv importCrash.csv odfundiff.csv validationErrors.csv ../.
cd ..
-rm -f current.zip
-zip -r current.zip $SHA/*
if [ -z "$CRASHTEST_NO_UPLOAD" ]; then
+ rm -f current.zip
+ zip -r current.zip $SHA/*
scp current.zip upload@gimli.documentfoundation.org:/srv/www/dev-builds.libreoffice.org/crashtest/.
ssh upload@gimli.documentfoundation.org unzip -n /srv/www/dev-builds.libreoffice.org/crashtest/current.zip -d /srv/www/dev-builds.libreoffice.org/crashtest
fi