From: Flavio Fernandes Date: Sat, 28 Mar 2015 15:17:31 +0000 (-0400) Subject: Add ovsdb-daily-openstack-master X-Git-Tag: release/lithium~307 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=25e7c2fef40636235cf97946a5413549a501010a;p=releng%2Fbuilder.git Add ovsdb-daily-openstack-master This job will be triggered daily, and run the latest devstack-gate against the latest ODL. In a not too distant future, it should be tweaked to run against 'stable' Kilo. Patch 2,3: typo Patch 4: Move install of xpath to releng/builder/jenkins-scripts/devstack.sh Patch 5: Move install of xpath to a separate gerrit ( https://git.opendaylight.org/gerrit/17361 ) Change-Id: If61f2c74863d4603b8856ab2ee9d7e929f17523c Signed-off-by: Flavio Fernandes --- diff --git a/jjb/ovsdb/include-raw-openstack-ci.sh b/jjb/ovsdb/include-raw-openstack-ci.sh index f2c0cad47..9fbd6b8ba 100644 --- a/jjb/ovsdb/include-raw-openstack-ci.sh +++ b/jjb/ovsdb/include-raw-openstack-ci.sh @@ -72,6 +72,7 @@ DEVSTACK_LOCAL_CONFIG+="ODL_JAVA_MAX_MEM=784m;" DEVSTACK_LOCAL_CONFIG+="ODL_JAVA_MAX_PERM_MEM=784m;" # Set ODL_URL_PREFIX if "nexus proxy" is provided +URL_PREFIX=${ODLNEXUSPROXY:-https://nexus.opendaylight.org} if [ -n "$ODLNEXUSPROXY" ] ; then DEVSTACK_LOCAL_CONFIG+="ODL_URL_PREFIX=$ODLNEXUSPROXY;" fi @@ -79,6 +80,21 @@ fi ## # Trim down the boot wait time ## export ODL_BOOT_WAIT=30 +# Use Lithium build, if asked to do so +if [ "${ODL_VERSION}" == "lithium-latest" ] ; then + NEXUSPATH="${URL_PREFIX}/content/repositories/opendaylight.snapshot/org/opendaylight/integration/distribution-karaf" + BUNDLEVERSION='0.3.0-SNAPSHOT' + + # Acquire the timestamp information from maven-metadata.xml + wget ${NEXUSPATH}/${BUNDLEVERSION}/maven-metadata.xml + BUNDLE_TIMESTAMP=`xpath maven-metadata.xml "//snapshotVersion[extension='zip'][1]/value/text()" 2>/dev/null` + echo "Nexus timestamp is ${BUNDLE_TIMESTAMP}" + + DEVSTACK_LOCAL_CONFIG+="ODL_NAME=distribution-karaf-${BUNDLEVERSION};" + DEVSTACK_LOCAL_CONFIG+="ODL_PKG=distribution-karaf-${BUNDLE_TIMESTAMP}.zip;" + DEVSTACK_LOCAL_CONFIG+="ODL_URL=${NEXUSPATH}/${BUNDLEVERSION};" +fi + # And this runs devstack-gate export PYTHONUNBUFFERED=true export DEVSTACK_GATE_TIMEOUT=120 @@ -108,8 +124,8 @@ export KEEP_LOCALRC=1 # Unset this because it's set by the underlying Jenkins node ... unset GIT_BASE -# Only run certain tempest tests -export DEVSTACK_GATE_TEMPEST_REGEX="tempest.api.network.test_networks_negative tempest.api.network.test_networks.NetworksTestJSON" +# By default, only run certain tempest tests +export DEVSTACK_GATE_TEMPEST_REGEX=${TEMPEST_REGEX:-"tempest.api.network.test_networks_negative tempest.api.network.test_networks.NetworksTestJSON"} # Specifically set the services we want #OVERRIDE_ENABLED_SERVICES=q-svc,q-dhcp,q-l3,q-meta,quantum,key,g-api,g-reg,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-xvnc,n-cauth,h-eng,h-api,h-api-cfn,h-api-cw,rabbit,tempest,mysql diff --git a/jjb/ovsdb/ovsdb-daily-openstack-master.yaml b/jjb/ovsdb/ovsdb-daily-openstack-master.yaml new file mode 100644 index 000000000..e9febf1ad --- /dev/null +++ b/jjb/ovsdb/ovsdb-daily-openstack-master.yaml @@ -0,0 +1,54 @@ +- project: + name: ovsdb-daily-openstack + jobs: + - 'ovsdb-daily-openstack-master' + + project: 'ovsdb' + +- job-template: + name: 'ovsdb-daily-openstack-master' + + project-type: freestyle + node: dynamic_devstack + description: 'Jenkins job to run Tempest tests for the OpenDaylight ML2 MechanismDriver on master ODL. ' + concurrent: true + + logrotate: + daysToKeep: '198' + + parameters: + - project-parameter: + project: '{project}' + + wrappers: + - timeout: + fail: true + timeout: 90 + timeout-var: 'BUILD_TIMEOUT' + type: absolute + - ssh-agent-credentials: + user: '{openstack-gerrit-credentials}' + - jclouds: + single-use: true + + triggers: + - timed: '@daily' + + builders: + - inject: + properties-content: | + ODL_VERSION=lithium-latest + TEMPEST_REGEX=tempest.api.network + - shell: + !include-raw-escape include-raw-openstack-ci.sh + + publishers: + - archive: + artifacts: 'logs/**' + fingerprint: false + - email-ext: + subject: '[ovsdb] $DEFAULT_SUBJECT' + attach-build-log: false + failure: false + unstable: false + fixed: false