Modify get bundle script to deal with distribution-check artifacts
[releng/builder.git] / jjb / integration / include-raw-integration-get-bundle-vars.sh
index d01ab252f2d888ed4a0df82278ba7721d46949d9..11c90a9cc280d9c1acf95ba942caf74a0e60aa3b 100644 (file)
@@ -23,8 +23,8 @@ if [ ${BUNDLEURL} == 'last' ]; then
 else
     ACTUALBUNDLEURL="${BUNDLEURL}"
     BUNDLE="${BUNDLEURL##*/}"
-    BUNDLEVERSION="$(basename $(dirname $BUNDLEURL))"
-    BUNDLEFOLDER="distribution-karaf-${BUNDLEVERSION}"
+    BUNDLEFOLDER="${BUNDLE//.zip}"
+    BUNDLEVERSION="${BUNDLEFOLDER//distribution-karaf-}"
 fi
 
 if [ ${JDKVERSION} == 'openjdk8' ]; then