From 40d1fdd34b2495899d31dacdeea78bb4f3b45ba6 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 17 Jul 2019 19:29:26 +0200 Subject: [PATCH] improved speed and reliablility of jenkins build by replacing the download of the fiji package with the use of a predownloaded version. --- scripts/install_fiji.bash | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/scripts/install_fiji.bash b/scripts/install_fiji.bash index 89890f4..4961264 100755 --- a/scripts/install_fiji.bash +++ b/scripts/install_fiji.bash @@ -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