Make distribution-verify deploy to Nexus
[releng/builder.git] / jjb / integration / include-raw-integration-get-bundle-url.sh
1 #!/bin/bash
2 # Extract the BUNDLE_VERSION from the pom.xml
3 export BUNDLE_URL
4 export BUNDLE_VERSION
5 BUNDLE_VERSION=$(xpath "$BUNDLE_POM" '/project/version/text()' 2> /dev/null)
6 BUNDLE_URL=${BUILD_URL}org.opendaylight.integration\$distribution-karaf/artifact/org.opendaylight.integration/distribution-karaf/${BUNDLE_VERSION}/distribution-karaf-${BUNDLE_VERSION}.zip
7
8 echo "Bundle variables"
9 env | grep BUNDLE_ | sort | tee -a bundle.txt
10
11 # NOTE: BUNDLE_VERSION & BUNDLE_URL will be re-imported back into the environment with the
12 # Inject environment variables plugin (next step)