improved speed and reliablility of jenkins build by replacing the download of the fiji package with the use of a predownloaded version.

This commit is contained in:
Guillaume Raffy 2019-07-17 19:29:26 +02:00
parent d50cd1825e
commit 40d1fdd34b
1 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,16 @@
#!/bin/bash
wget 'https://downloads.imagej.net/fiji/latest/fiji-linux64.zip'
unzip './fiji-linux64.zip'
rm './fiji-linux64.zip'
DOWNLOAD_FIJI_LATEST_VERSION='false'
if [ "$DOWNLOAD_FIJI_LATEST_VERSION" = 'true' ]
then
wget 'https://downloads.imagej.net/fiji/latest/fiji-linux64.zip'
unzip './fiji-linux64.zip'
rm './fiji-linux64.zip'
else
# use the version downloaded with :
# graffy@physix-frontal:/opt/ipr/cluster/work.global/graffy/jenkins-store/lipase$ wget 'https://downloads.imagej.net/fiji/latest/fiji-linux64.zip'
# graffy@physix-frontal:/opt/ipr/cluster/work.global/graffy/jenkins-store/lipase$ mv fiji-linux64.zip ./fiji-linux64-2019-07-02.zip
# note : the date of the package is visible on https://downloads.imagej.net/fiji/latest/
FIJI_PACKAGE_FILE_PATH='/opt/ipr/cluster/work.global/graffy/jenkins-store/lipase/fiji-linux64-2019-07-02.zip'
echo "using pre-downloaded fiji package $FIJI_PACKAGE_FILE_PATH"
unzip "$FIJI_PACKAGE_FILE_PATH"
fi