X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-configure-clustering.sh;h=42a2d8696633655f6e63c6db275f771967fae490;hb=d04bfda398aecb6928a877973b275362d1f53ac3;hp=5b1db13ec908f13a2ccd58676d2918d611fe6c38;hpb=ccaff4b13a69a8e501cbf672f2f45241cd7ec909;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-configure-clustering.sh b/jjb/integration/integration-configure-clustering.sh index 5b1db13ec..42a2d8696 100644 --- a/jjb/integration/integration-configure-clustering.sh +++ b/jjb/integration/integration-configure-clustering.sh @@ -4,6 +4,7 @@ # script. # shellcheck source=${ROBOT_VENV}/bin/activate disable=SC1091 source ${ROBOT_VENV}/bin/activate +source /tmp/common-functions.sh ${BUNDLEFOLDER} echo "#################################################" echo "## Configure Cluster and Start ##" @@ -55,6 +56,8 @@ fi # Create the configuration script to be run on controllers. cat > ${WORKSPACE}/configuration-script.sh <> \${LOGCONF} - fi - done +sed -ie "s%\(featuresRepositories=\|featuresRepositories =\)%featuresRepositories = mvn:org.opendaylight.integration/\${FEATURE_TEST_STRING}/${BUNDLE_VERSION}/xml/features,mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.0.0/xml/features,%g" ${FEATURESCONF} +if [[ ! -z "${REPO_URL}" ]]; then + sed -ie "s%featuresRepositories =%featuresRepositories = ${REPO_URL},%g" ${FEATURESCONF} fi -cat ${LOGCONF} +cat ${FEATURESCONF} if [ "${ODL_ENABLE_L3_FWD}" == "yes" ]; then echo "Enable the l3.fwd in custom.properties.." @@ -105,7 +92,9 @@ if [ "${ODL_ENABLE_L3_FWD}" == "yes" ]; then cat ${CUSTOMPROP} fi -set_java_vars +configure_karaf_log "${KARAF_VERSION}" "${CONTROLLERDEBUGMAP}" + +set_java_vars "${JAVA_HOME}" "${CONTROLLERMEM}" "${MEMCONF}" # Copy shard file if exists if [ -f /tmp/custom_shard_config.txt ]; then