NEXUSPATH="https://nexus.opendaylight.org/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"
+ echo "Bundle version is ${BUNDLEVERSION}"
# Acquire the timestamp information from maven-metadata.xml
wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml
TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null`
- echo "Nexus timestamp is $TIMESTAMP"
+ echo "Nexus timestamp is ${TIMESTAMP}"
BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}"
BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip"
BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}"
- echo "Distribution bundle URL is ${BUNDLEURL}"
else
- BUNDLE="$(echo "$BUNDLEURL" | awk -F '/' '{ print $(NF) }')"
- BUNDLEFOLDER="${BUNDLE//.zip}"
+ BUNDLE="$(echo ${BUNDLEURL} | awk -F '/' '{ print $(NF) }')"
+ echo "Finding out Bundle folder..."
+ wget --no-verbose ${BUNDLEURL}
+ BUNDLEFOLDER="$(unzip -qql ${BUNDLE} | head -n1 | tr -s ' ' | cut -d' ' -f5- | rev | cut -c 2- | rev)"
+ rm ${BUNDLE}
fi
+echo "Distribution bundle URL is ${BUNDLEURL}"
+echo "Distribution bundle is ${BUNDLE}"
+echo "Distribution folder is ${BUNDLEFOLDER}"
+
echo "Downloading the distribution from ${BUNDLEURL}"
wget --no-verbose ${BUNDLEURL}
NEXUSPATH="https://nexus.opendaylight.org/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"
+ echo "Bundle version is ${BUNDLEVERSION}"
# Acquire the timestamp information from maven-metadata.xml
wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml
TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null`
- echo "Nexus timestamp is $TIMESTAMP"
+ echo "Nexus timestamp is ${TIMESTAMP}"
BUNDLEFOLDER="distribution-${DISTRIBUTION}-${BUNDLEVERSION}"
BUNDLE="distribution-${DISTRIBUTION}-${TIMESTAMP}.zip"
BUNDLEURL="${NEXUSPATH}/${BUNDLEVERSION}/${BUNDLE}"
- echo "Distribution bundle URL is ${BUNDLEURL}"
else
- BUNDLE="$(echo "$BUNDLEURL" | awk -F '/' '{ print $(NF) }')"
- BUNDLEFOLDER="${BUNDLE//.zip}"
+ BUNDLE="$(echo ${BUNDLEURL} | awk -F '/' '{ print $(NF) }')"
+ echo "Finding out Bundle folder..."
+ wget --no-verbose ${BUNDLEURL}
+ BUNDLEFOLDER="$(unzip -qql ${BUNDLE} | head -n1 | tr -s ' ' | cut -d' ' -f5- | rev | cut -c 2- | rev)"
+ rm ${BUNDLE}
fi
+echo "Distribution bundle URL is ${BUNDLEURL}"
+echo "Distribution bundle is ${BUNDLE}"
+echo "Distribution folder is ${BUNDLEFOLDER}"
+
cat > ${WORKSPACE}/controller-script.sh <<EOF
echo "Downloading the distribution from ${BUNDLEURL}"
cd /tmp
break
elif (( "\$COUNT" > "600" )); then
echo Timeout Controller DOWN
- echo "Fetching Karaf log"
- scp ${CONTROLLER0}:/tmp/${BUNDLEFOLDER}/data/log/karaf.log .
+ echo "Dumping Karaf log..."
+ cd ../data/log
+ cat karaf.log
exit 1
else
COUNT=\$(( \${COUNT} + 5 ))
EOF
-scp ${WORKSPACE}/controller-script.sh $CONTROLLER0:/tmp
+scp ${WORKSPACE}/controller-script.sh ${CONTROLLER0}:/tmp
ssh ${CONTROLLER0} 'bash /tmp/controller-script.sh'
echo "Changing the testplan path..."
- project:
- name: integration-release-stable-helium
+ name: integration-distribution-test
jobs:
- - 'integration-test-release-{stream}'
+ - 'integration-distribution-test-{stream}'
# stream: branch with - in place of / (eg. stable-helium)
# branch: branch (eg. stable/helium)
stream:
- stable-helium:
branch: 'stable/helium'
+ csit-list: 'controller-csit-1node-imds-nsf-only-{stream},controller-csit-1node-imds-nsf-all-{stream},aaa-csit-1node-imds-authn-only-{stream},aaa-csit-1node-imds-authn-all-{stream},openflowplugin-csit-1node-imds-flow-services-only-{stream},openflowplugin-csit-1node-imds-flow-services-all-{stream},l2switch-csit-1node-imds-switch-only-{stream},l2switch-csit-1node-imds-switch-all-{stream},vtn-csit-1node-imds-manager-only-{stream},vtn-csit-1node-imds-manager-all-{stream},lispflowmapping-csit-1node-imds-all-only-{stream},lispflowmapping-csit-1node-imds-all-all-{stream}'
- job-template:
- name: 'integration-test-release-{stream}'
+ name: 'integration-distribution-test-{stream}'
# Job template for ODL Integration Release Tests
#
builders:
- trigger-builds:
- - project: 'controller-csit-1node-imds-nsf-only-{stream},controller-csit-1node-imds-nsf-all-{stream},aaa-csit-1node-imds-authn-only-{stream},aaa-csit-1node-imds-authn-all-{stream},openflowplugin-csit-1node-imds-flow-services-only-{stream},openflowplugin-csit-1node-imds-flow-services-all-{stream},l2switch-csit-1node-imds-switch-only-{stream},l2switch-csit-1node-imds-switch-all-{stream},vtn-csit-1node-imds-manager-only-{stream},vtn-csit-1node-imds-manager-all-{stream},lispflowmapping-csit-1node-imds-all-only-{stream},lispflowmapping-csit-1node-imds-all-all-{stream}'
+ - project: '{csit-list}'
block: true
predefined-parameters:
BUNDLEURL=$BUNDLEURL