Fix #331 backport JENKINS_UC_DOWNLOAD feature in install-plugins.sh
diff --git a/install-plugins.sh b/install-plugins.sh
index ff29883..4ea9cf5 100755
--- a/install-plugins.sh
+++ b/install-plugins.sh
@@ -62,7 +62,11 @@
return 0
fi
- url="$JENKINS_UC/download/plugins/$plugin/$version/${plugin}.hpi"
+ if [ -z "$JENKINS_UC_DOWNLOAD" ]; then
+ JENKINS_UC_DOWNLOAD=$JENKINS_UC/download
+ fi
+
+ url="$JENKINS_UC_DOWNLOAD/plugins/$plugin/$version/${plugin}.hpi"
echo "Downloading plugin: $plugin from $url"
curl --connect-timeout 5 --retry 5 --retry-delay 0 --retry-max-time 60 -s -f -L "$url" -o "$jpi"