From 5216c828fd68b99237ec19a677b2214d663e42e6 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Fri, 10 Apr 2020 18:02:30 +0200 Subject: [PATCH] fixed bug that cause release_lipase_package.bash to not handle the case when the package is not in the current directory --- scripts/release_lipase_package.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release_lipase_package.bash b/scripts/release_lipase_package.bash index 2e49b35..d3551aa 100755 --- a/scripts/release_lipase_package.bash +++ b/scripts/release_lipase_package.bash @@ -2,6 +2,7 @@ LIPASE_PACKAGE_FILE_PATH=$(ls build/lipase*.zip) LIPASE_USER_MANUAL_PATH=$(pwd)/doc/lipase.pdf echo "LIPASE_PACKAGE_FILE_PATH=$LIPASE_PACKAGE_FILE_PATH" +LIPASE_PACKAGE_FILE_NAME=$(basename $LIPASE_PACKAGE_FILE_PATH) if [ "$GRAFFY_OWNCLOUD_JENKINS_PWD" = '' ] then echo "the value of the environment variable GRAFFY_OWNCLOUD_JENKINS_PWD is empty, while its contents are expected to come from JenkinsFile (this script is designed to be called from the accompanying JenkinsFile)" @@ -12,5 +13,5 @@ virtualenv ./python.virtualenv source ./python.virtualenv/bin/activate pip install pyocclient # installs python owncloud module -python -c "import owncloud; oc = owncloud.Client('https://cloud.ipr.univ-rennes1.fr'); oc.login('graffy','$GRAFFY_OWNCLOUD_JENKINS_PWD'); oc.put_file('downloads/$LIPASE_PACKAGE_FILE_PATH', r'$LIPASE_PACKAGE_FILE_PATH'); oc.put_file('downloads/lipase-manual.pdf', r'$LIPASE_USER_MANUAL_PATH');" +python -c "import owncloud; oc = owncloud.Client('https://cloud.ipr.univ-rennes1.fr'); oc.login('graffy','$GRAFFY_OWNCLOUD_JENKINS_PWD'); oc.put_file('downloads/$LIPASE_PACKAGE_FILE_NAME', r'$LIPASE_PACKAGE_FILE_PATH'); oc.put_file('downloads/lipase-manual.pdf', r'$LIPASE_USER_MANUAL_PATH');"