Issue #106 Fix regresion by only checking JENKINS_UC_DOWNLOAD at runtime
diff --git a/plugins.sh b/plugins.sh
index dc0f241..3413ce4 100755
--- a/plugins.sh
+++ b/plugins.sh
@@ -19,5 +19,9 @@
[[ ${plugin[0]} =~ ^\s*$ ]] && continue
[[ -z ${plugin[1]} ]] && plugin[1]="latest"
echo "Downloading ${plugin[0]}:${plugin[1]}"
+
+ if [ -z "$JENKINS_UC_DOWNLOAD" ]; then
+ JENKINS_UC_DOWNLOAD=$JENKINS_UC/download
+ fi
curl -sSL -f ${JENKINS_UC_DOWNLOAD}/plugins/${plugin[0]}/${plugin[1]}/${plugin[0]}.hpi -o $REF/${plugin[0]}.jpi
done < $1