Merge "Configure integration scripts to use Nexus proxy"
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-controller-offline.sh
index 283ef64541e417f3ffe2af3250d5a659a21d86b6..0848d0376c500d473f659b1b215d4c9a5a3f2313 100644 (file)
@@ -3,8 +3,10 @@ DISTRIBUTION="karaf"
 CONTROLLERFEATURES="odl-integration-compatible-with-all"
 CONTROLLERMEM="3072m"
 
+NEXUSURL_PREFIX=${ODLNEXUSPROXY:-https://nexus.opendaylight.org}
+
 if [ ${BUNDLEURL} == 'last' ]; then
-    NEXUSPATH="https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-${DISTRIBUTION}"
+    NEXUSPATH="${NEXUSURL_PREFIX}/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-${DISTRIBUTION}"
     # Extract the BUNDLEVERSION from the pom.xml
     BUNDLEVERSION=`xpath pom.xml '/project/version/text()' 2> /dev/null`
     echo "Bundle version is ${BUNDLEVERSION}"