Fix BUNDLE_URL variable injection 63/55863/1
authorLuis Gomez <ecelgp@gmail.com>
Mon, 24 Apr 2017 00:25:58 +0000 (17:25 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Mon, 24 Apr 2017 00:25:58 +0000 (17:25 -0700)
Change-Id: I3d52c52066a1fdef9e57506946664ec23506816b
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
jjb/integration/integration-upload-distribution.sh

index 9289c55687dbe4e92413b9f7a1744f358fc8e4dd..e9e2bdf828c28cf9075947fde2c66a9a83e2e17d 100644 (file)
@@ -26,4 +26,6 @@ BUNDLE_URL=$(grep "Uploaded.*${KARAF_ARTIFACT}/${BUNDLE_VERSION}.*.zip" ${LOG_FI
 echo "Bundle uploaded to ${BUNDLE_URL}"
 
 # Re-inject the new BUNDLE_URL for downstream jobs to pull from Nexus
-env | grep BUNDLE_ | sort | tee integration-upload-distribution.env
+cat > "${WORKSPACE}/integration-upload-distribution.env" <<EOF
+BUNDLE_URL=${BUNDLE_URL}
+EOF