Step 2: Change csit job templates to download 2 repositories
[releng/builder.git] / jjb / integration / include-raw-integration-get-bundle-url.sh
1 # Extract the BUNDLEVERSION from the pom.xml
2 BUNDLEVERSION=`xpath distribution/pom.xml '/project/version/text()' 2> /dev/null`
3 echo "Bundle version is ${BUNDLEVERSION}"
4
5 BUNDLEURL=${BUILD_URL}org.opendaylight.integration\$distribution-karaf/artifact/org.opendaylight.integration/distribution-karaf/${BUNDLEVERSION}/distribution-karaf-${BUNDLEVERSION}.zip
6 echo "Bundle url is ${BUNDLEURL}"
7
8 # Set BUNDLEVERSION & BUNDLEURL
9 echo BUNDLEVERSION=${BUNDLEVERSION} > bundle.txt
10 echo BUNDLEURL=${BUNDLEURL} >> bundle.txt
11
12 # NOTE: BUNDLEVERSION & BUNDLEURL will be re-imported back into the environment with the
13 # Inject environment variables plugin (next step)