Fix BUNDLE_URL extraction in distribution-check 80/71180/1
authorLuis Gomez <ecelgp@gmail.com>
Fri, 20 Apr 2018 19:15:01 +0000 (12:15 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Fri, 20 Apr 2018 19:15:58 +0000 (12:15 -0700)
After maven upgrade we see different upload message in log so
script has to be adjusted.

Change-Id: I0b8f19cf684bcaf2e93c50b41d5b021c274e31a8
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
jjb/integration/integration-upload-distribution.sh

index e9e2bdf828c28cf9075947fde2c66a9a83e2e17d..39cdbeca55cd1f1a9bf5ebf0810f3086a42cf8ca 100644 (file)
@@ -22,7 +22,7 @@ echo "Uploading distribution to Nexus..."
 
 cat "${LOG_FILE}"
 
-BUNDLE_URL=$(grep "Uploaded.*${KARAF_ARTIFACT}/${BUNDLE_VERSION}.*.zip" ${LOG_FILE} | awk '{print $3}') || true
+BUNDLE_URL=$(grep "Uploaded.*${KARAF_ARTIFACT}/${BUNDLE_VERSION}.*.zip" ${LOG_FILE} | awk '{print $5}') || true
 echo "Bundle uploaded to ${BUNDLE_URL}"
 
 # Re-inject the new BUNDLE_URL for downstream jobs to pull from Nexus