-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
VOLUME_SIZE=100
HARDWARE_ID=odl-highcpu-2
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
VOLUME_SIZE=150
HARDWARE_ID=odl-standard-4
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
VOLUME_SIZE=150
HARDWARE_ID=odl-standard-8
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
VOLUME_SIZE=150
HARDWARE_ID=odl-highcpu-8
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=v1-standard-1
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=odl-highcpu-2
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=odl-standard-2
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=odl-standard-4
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=odl-highcpu-4
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=odl-highcpu-8
CLOUD_ZONE=ca-ymq-1
# Default Template Configuration
-IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956
+IMAGE_NAME=ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587
HARDWARE_ID=v1-standard-1
NETWORK_ID=b5fcd86e-efac-4997-b8bc-dbe0d35bc229
USER_DATA_ID=jenkins-init-script
name: Merge-Fluorine
description: 'List of Fluorine Merge jobs for Autorelease'
job-name:
- - 'aaa-maven-merge-fluorine'
- - 'bgpcep-maven-merge-fluorine'
- - 'controller-maven-merge-fluorine'
- - 'coe-maven-merge-fluorine'
- - 'daexim-maven-merge-fluorine'
- - 'genius-maven-merge-fluorine'
- - 'infrautils-maven-merge-fluorine'
- - 'integration/distribution-maven-merge-fluorine'
- - 'lispflowmapping-maven-merge-fluorine'
- - 'mdsal-maven-merge-fluorine'
- - 'netconf-maven-merge-fluorine'
- - 'netvirt-maven-merge-fluorine'
- - 'neutron-maven-merge-fluorine'
- - 'openflowplugin-maven-merge-fluorine'
- - 'ovsdb-maven-merge-fluorine'
- - 'serviceutils-maven-merge-fluorine'
- - 'sfc-maven-merge-fluorine'
+ - 'aaa-merge-fluorine'
+ - 'bgpcep-merge-fluorine'
+ - 'controller-merge-fluorine'
+ - 'coe-merge-fluorine'
+ - 'daexim-merge-fluorine'
+ - 'genius-merge-fluorine'
+ - 'infrautils-merge-fluorine'
+ - 'integration/distribution-merge-fluorine'
+ - 'lispflowmapping-merge-fluorine'
+ - 'mdsal-merge-fluorine'
+ - 'netconf-merge-fluorine'
+ - 'netvirt-merge-fluorine'
+ - 'neutron-merge-fluorine'
+ - 'openflowplugin-merge-fluorine'
+ - 'ovsdb-merge-fluorine'
+ - 'serviceutils-merge-fluorine'
+ - 'sfc-merge-fluorine'
<<: *releng_autorelease_view_common_fluorine
name: Merge-Neon
description: 'List of Neon Merge jobs for Autorelease'
job-name:
- - 'aaa-maven-merge-neon'
- - 'bgpcep-maven-merge-neon'
- - 'controller-maven-merge-neon'
- - 'coe-maven-merge-neon'
- - 'daexim-maven-merge-neon'
- - 'genius-maven-merge-neon'
- - 'infrautils-maven-merge-neon'
- - 'integration/distribution-maven-merge-neon'
- - 'lispflowmapping-maven-merge-neon'
- - 'netconf-maven-merge-neon'
- - 'netvirt-maven-merge-neon'
- - 'neutron-maven-merge-neon'
- - 'openflowplugin-maven-merge-neon'
- - 'ovsdb-maven-merge-neon'
- - 'serviceutils-maven-merge-neon'
- - 'sfc-maven-merge-neon'
+ - 'aaa-merge-neon'
+ - 'bgpcep-merge-neon'
+ - 'controller-merge-neon'
+ - 'coe-merge-neon'
+ - 'daexim-merge-neon'
+ - 'genius-merge-neon'
+ - 'infrautils-merge-neon'
+ - 'integration/distribution-merge-neon'
+ - 'lispflowmapping-merge-neon'
+ - 'netconf-merge-neon'
+ - 'netvirt-merge-neon'
+ - 'neutron-merge-neon'
+ - 'openflowplugin-merge-neon'
+ - 'ovsdb-merge-neon'
+ - 'serviceutils-merge-neon'
+ - 'sfc-merge-neon'
<<: *releng_autorelease_view_common_neon
name: Merge-Sodium
description: 'List of Sodium Merge jobs for Autorelease'
job-name:
- - 'aaa-maven-merge-sodium'
- - 'bgpcep-maven-merge-sodium'
- - 'controller-maven-merge-sodium'
- - 'coe-maven-merge-sodium'
- - 'daexim-maven-merge-sodium'
- - 'genius-maven-merge-sodium'
- - 'infrautils-maven-merge-sodium'
- - 'integration/distribution-maven-merge-sodium'
- - 'lispflowmapping-maven-merge-sodium'
- - 'netconf-maven-merge-sodium'
- - 'netvirt-maven-merge-sodium'
- - 'neutron-maven-merge-sodium'
- - 'openflowplugin-maven-merge-sodium'
- - 'ovsdb-maven-merge-sodium'
- - 'serviceutils-maven-merge-sodium'
- - 'sfc-maven-merge-sodium'
+ - 'aaa-merge-sodium'
+ - 'bgpcep-merge-sodium'
+ - 'controller-merge-sodium'
+ - 'coe-merge-sodium'
+ - 'daexim-merge-sodium'
+ - 'genius-merge-sodium'
+ - 'infrautils-merge-sodium'
+ - 'integration/distribution-merge-sodium'
+ - 'lispflowmapping-merge-sodium'
+ - 'netconf-merge-sodium'
+ - 'netvirt-merge-sodium'
+ - 'neutron-merge-sodium'
+ - 'openflowplugin-merge-sodium'
+ - 'ovsdb-merge-sodium'
+ - 'serviceutils-merge-sodium'
+ - 'sfc-merge-sodium'
<<: *releng_autorelease_view_common_sodium
openstack-heat-template-dir: openstack-hot
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
openstack-heat-template-dir: openstack-hot
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
openstack-heat-template-dir: openstack-hot
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
openstack-heat-template-dir: openstack-hot
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
tools_system_count: 1
tools_system_flavor: 'odl-highcpu-2'
tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190201-040143.366'
odl_system_count: 1
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
docker_system_count: 1
docker_system_flavor: 'odl-standard-1'
docker_system_image: 'ZZCI - CentOS 7 - docker - 20180723-235456.035'
odl_system_count: 1
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
openstack_system_count: 1
openstack_system_flavor: 'odl-standard-4'
openstack_system_image: 'ZZCI - CentOS 7 - devstack - 20180911-204116.460'
odl_system_count: 1
odl_system_flavor: 'odl-highcpu-4'
- odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20181010-215635.956'
+ odl_system_image: 'ZZCI - CentOS 7 - builder - x86_64 - 20190403-205252.587'
openstack_system_count: 1
openstack_system_flavor: 'odl-standard-4'
openstack_system_image: 'ZZCI - CentOS 7 - devstack - 20180911-204116.460'
mvn-version: 'mvn35'
csit-list: !include: csit-jobs-sodium.lst
build-order: >
- odlparent yangtools infrautils mdsal controller serviceutils aaa netconf
+ odlparent yangtools mdsal infrautils controller serviceutils aaa netconf
daexim ovsdb neutron openflowplugin coe genius lispflowmapping sfc netvirt
bgpcep integration/distribution
mvn-version: 'mvn35'
csit-list: !include: csit-jobs-neon.lst
build-order: >
- odlparent yangtools infrautils mdsal controller serviceutils aaa netconf
+ odlparent yangtools mdsal infrautils controller serviceutils aaa netconf
daexim ovsdb neutron openflowplugin coe genius lispflowmapping sfc netvirt
bgpcep integration/distribution
build-days-to-keep: '{build-days-to-keep}'
parameters:
- - patches-to-build-parameter:
- patches_to_build: '$PATCHES_TO_BUILD'
- - build-order-parameter:
- build-order: '{build-order}'
- - build-fast-parameter:
- build-fast: 'false'
- - run-test-parameter:
- run-test: 'false'
+ - string:
+ name: PATCHES_TO_BUILD
+ default: '$PATCHES_TO_BUILD'
+ description: |
+ Ordered list of patches to build in the format of project=changeset (checkout) or
+ project:changeset (cherry-pick) for example: genius=32/53632/9,netvirt:59/50259/47.
+ - string:
+ name: BUILD_ORDER
+ default: '{build-order}'
+ description: 'Build order for multipatch test when topic is used'
+ - string:
+ name: BUILD_FAST
+ default: 'true'
+ description: 'Set true to build fast -Pq'
+ - string:
+ name: BUILD_NORMAL
+ default: ''
+ description: 'List of projects to build normal (no -Pq) when BUILD_FAST=true'
+ - string:
+ name: RUN_TEST
+ default: 'false'
+ description: 'Set true to run test after build'
- integration-distribution-branch:
branch: '{branch}'
- integration-distribution-stream:
- ovsdb-csit-3node-upstream-clustering-only-fluorine
- sfc-csit-3node-docker-full-deploy-all-fluorine
- sfc-csit-3node-rest-basic-all-fluorine
- <<: *releng_view_common
+ view-type: list
+ filter-executors: false
+ filter-queue: false
+ columns:
+ - status
+ - weather
+ - job
+ - last-success
+ - last-failure
+ - last-duration
+ - build-button
+ - jacoco
+ - find-bugs
+ - robot-list
+ recurse: false
- view:
name: csit-stable-ne
- ovsdb-csit-3node-upstream-clustering-only-neon
- sfc-csit-3node-docker-full-deploy-all-neon
- sfc-csit-3node-rest-basic-all-neon
- <<: *releng_view_common
+ view-type: list
+ filter-executors: false
+ filter-queue: false
+ columns:
+ - status
+ - weather
+ - job
+ - last-success
+ - last-failure
+ - last-duration
+ - build-button
+ - jacoco
+ - find-bugs
+ - robot-list
+ recurse: false
fi
PATCHES_TO_BUILD=${PATCHES_TO_BUILD#*:}
fi
-if ${BUILD_FAST}; then
- fast_option="-Pq"
-else
- fast_option=""
-fi
# check if topic exists:
# if topic=binding-rpc, then checkout first patch in binding-rpc topic (if it exists)
# if topic:binding-rpc, then cherry-pick first patch in binding-rpc topic (if it exists)
if [ "${PROJECT}" == "odlparent" ] || [ "${PROJECT}" == "yangtools" ] || ([ "${PROJECT}" == "mdsal" ] && [ "${DISTROSTREAM}" != "fluorine" ]); then
ODLPARENT_VERSION="$(xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -v //x:odlparent.version ../pom.xml)"
echo "change odlparent version to ${ODLPARENT_VERSION}"
- find . -name "*.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:groupId=\"org.opendaylight.odlparent\"\] -v "${ODLPARENT_VERSION}" 2> /dev/null
+ find . -name "pom.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:parent/x:groupId=\"org.opendaylight.odlparent\"\] -v "${ODLPARENT_VERSION}"
+ find . -name "pom.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:groupId=\"org.opendaylight.odlparent\"\] -v "${ODLPARENT_VERSION}"
fi
if [ "${PROJECT}" == "yangtools" ] || ([ "${PROJECT}" == "mdsal" ] && [ "${DISTROSTREAM}" != "fluorine" ]); then
YANGTOOLS_VERSION="$(xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -v //x:yangtools.version ../pom.xml)"
echo "change yangtools version to ${YANGTOOLS_VERSION}"
- find -name "*.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:groupId=\"org.opendaylight.yangtools\"\] -v "${YANGTOOLS_VERSION}" 2> /dev/null
+ find . -name "pom.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:parent/x:groupId=\"org.opendaylight.yangtools\"\] -v "${YANGTOOLS_VERSION}"
+ find . -name "pom.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:groupId=\"org.opendaylight.yangtools\"\] -v "${YANGTOOLS_VERSION}"
fi
if [ "${PROJECT}" == "mdsal" ] && [ "${DISTROSTREAM}" != "fluorine" ]; then
MDSAL_VERSION="$(xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -v //x:mdsal.version ../pom.xml)"
echo "change mdsal version to ${MDSAL_VERSION}"
- find -name "*.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:groupId=\"org.opendaylight.mdsal\"\] -v "${MDSAL_VERSION}" 2> /dev/null
+ find . -name "pom.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:parent/x:groupId=\"org.opendaylight.mdsal\"\] -v "${MDSAL_VERSION}"
+ find . -name "pom.xml" -print0 | xargs -0 xmlstarlet ed --inplace -P -N x=http://maven.apache.org/POM/4.0.0 -u //x:version\[../x:groupId=\"org.opendaylight.mdsal\"\] -v "${MDSAL_VERSION}"
fi
else
# If project with no patch is MRI, download release tag:
# Second phase: build everything
for PROJECT_SHORTNAME in "${PROJECTS[@]}"; do
+ # Set Fast build if project is not in BUILD_NORMAL and BUILD_FAST is true
+ if [[ "${BUILD_NORMAL}" != *"${PROJECT_SHORTNAME}"* ]] && ${BUILD_FAST}; then
+ fast_option="-Pq"
+ else
+ fast_option=""
+ fi
pushd "${PROJECT_SHORTNAME}"
# Build project
"$MVN" clean install \
name: lf-infra-lftools
jobs:
- '{project-name}-rtd-jobs'
- - gerrit-release-announce
+ - gerrit-release-announce:
+ build-node: centos7-builder-2c-1g
- gerrit-tox-verify
project-name: lf-infra-lftools
mvn-params: >
-Dodl.jacoco.aggregateFile=$WORKSPACE/target/jacoco.exec
-Dsonar.jacoco.reportPath=$WORKSPACE/target/jacoco.exec
+ -Dskip.karaf.featureTest=true
project: 'mdsal'
project-name: 'mdsal'
VERSION_MAJOR=9
elif [ "$STREAM" == "neon" ]; then
VERSION_MAJOR=10
+elif [ "$STREAM" == "sodium" ]; then
+ VERSION_MAJOR=11
+elif [ "$STREAM" == "magnesium" ]; then
+ VERSION_MAJOR=12
+elif [ "$STREAM" == "aluminium" ]; then
+ VERSION_MAJOR=13
+elif [ "$STREAM" == "silicon" ]; then
+ VERSION_MAJOR=14
else
echo "Unable to convert stream to major version"
+ echo "MAINTAINER: Update if/else switch above with recent stream/ver pairs"
exit 1
fi
stream:
- neon
- fluorine
+ - sodium
distro:
- opensuse-42
build-timeout: '{build-timeout}'
builders:
- # Test Oxygen SR4 release tarball
+ # Test Fluorine SR2 release tarball
- inject:
# yamllint disable-line rule:line-length
- properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
+ properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.2/karaf-0.9.2.tar.gz'
- shell: !include-raw-escape: build-rpm.sh
- install-test-uninstall-rpm
- shell: !include-raw-escape: build-rpm.sh
- install-test-uninstall-rpm
- # Test Fluorine ('Managed Release Common Distro') release tarball
- - inject:
- # yamllint disable-line rule:line-length
- properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/opendaylight/0.9.0/opendaylight-0.9.0.tar.gz'
- - shell: !include-raw-escape: build-rpm.sh
- - install-test-uninstall-rpm
-
- # Test Fluorine SR1 release tarball
+ # Test latest Neon snapshot
- inject:
- # yamllint disable-line rule:line-length
- properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.1/karaf-0.9.1.tar.gz'
- - shell: !include-raw-escape: build-rpm.sh
+ properties-content: 'STREAM=neon'
+ - shell: !include-raw: build-rpm-snap.sh
- install-test-uninstall-rpm
- # Test Fluorine SR2 release tarball
+ # Test latest Sodium snapshot
- inject:
- # yamllint disable-line rule:line-length
- properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.9.2/karaf-0.9.2.tar.gz'
- - shell: !include-raw-escape: build-rpm.sh
- - install-test-uninstall-rpm
-
- # Test Neon pre-release autorelease tarball
- # NB: This will need to be updated as old builds expire
- # - inject:
- # yamllint disable-line rule:line-length
- # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2620/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
- # - shell: !include-raw-escape: build-rpm.sh
- # - install-test-uninstall-rpm
-
- # Test Neon multipatch zip (no parallel tarball available)
- # NB: This will need to be updated as old builds expire
- # - inject:
- # yamllint disable-line rule:line-length
- # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.10.0-SNAPSHOT/karaf-0.10.0-20190103.173010-50.zip'
- # - shell: !include-raw-escape: build-rpm.sh
- # - install-test-uninstall-rpm
-
- # Test latest Neon snapshot
- - inject:
- properties-content: 'STREAM=neon'
+ properties-content: 'STREAM=sodium'
- shell: !include-raw: build-rpm-snap.sh
- install-test-uninstall-rpm
build-timeout: '{build-timeout}'
builders:
- # Test Oxygen SR4 release tarball
- - inject:
- # yamllint disable-line rule:line-length
- properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.8.4/karaf-0.8.4.tar.gz'
- - shell: !include-raw-escape: build-rpm.sh
- - install-test-uninstall-rpm
-
- # Test Oxygen pre-release autorelease tarball
- # NB: This will need to be updated as old builds expire
- # - inject:
- # yamllint disable-line rule:line-length
- # properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2622/org/opendaylight/integration/karaf/0.8.5/karaf-0.8.5.tar.gz'
- # - shell: !include-raw-escape: build-rpm.sh
- # - install-test-uninstall-rpm
-
- # Test latest Oxygen snapshot
- - inject:
- properties-content: 'STREAM=oxygen'
- - shell: !include-raw: build-rpm-snap.sh
- - install-test-uninstall-rpm
-
# Test Fluorine ('Managed Release Common Distro') release tarball
- inject:
# yamllint disable-line rule:line-length
- shell: !include-raw-escape: build-rpm.sh
- install-test-uninstall-rpm
- # Test Neon release tarball
- - inject:
- # yamllint disable-line rule:line-length
- properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
- - shell: !include-raw-escape: build-rpm.sh
- - install-test-uninstall-rpm
-
# Test Fluorine pre-release autorelease tarball
# NB: This will need to be updated as old builds expire
+ # NB: Commented out to reduce maintenance
# - inject:
# yamllint disable-line rule:line-length
# properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2621/org/opendaylight/integration/karaf/0.9.2/karaf-0.9.2.tar.gz'
# Test Fluorine multipatch zip (no parallel tarball available)
# NB: This will need to be updated as old builds expire
+ # NB: Commented out to reduce maintenance
# - inject:
# yamllint disable-line rule:line-length
# properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.9.2-SNAPSHOT/karaf-0.9.2-20181222.162905-8.zip'
- shell: !include-raw: build-rpm-snap.sh
- install-test-uninstall-rpm
+ # Test Neon release tarball
+ - inject:
+ # yamllint disable-line rule:line-length
+ properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.gz'
+ - shell: !include-raw-escape: build-rpm.sh
+ - install-test-uninstall-rpm
+
# Test Neon pre-release autorelease tarball
# NB: This will need to be updated as old builds expire
+ # NB: Commented out to reduce maintenance
# - inject:
# yamllint disable-line rule:line-length
# properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/autorelease-2620/org/opendaylight/integration/karaf/0.10.0/karaf-0.10.0.tar.g'
# Test Neon multipatch zip (no parallel tarball available)
# NB: This will need to be updated as old builds expire
+ # NB: Commented out to reduce maintenance
# - inject:
# yamllint disable-line rule:line-length
# properties-content: 'DOWNLOAD_URL=https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration/integration/distribution/karaf/0.10.0-SNAPSHOT/karaf-0.10.0-20190103.173010-50.zip'
- shell: !include-raw: build-rpm-snap.sh
- install-test-uninstall-rpm
+ # Test latest Sodium snapshot
+ - inject:
+ properties-content: 'STREAM=sodium'
+ - shell: !include-raw: build-rpm-snap.sh
+ - install-test-uninstall-rpm
+
triggers:
- timed: '@weekly'
- gerrit:
sudo docker exec $docker_id /bin/bash $scripts_path/test-ports-nofeature.sh
# Don't install test feature and check REST for Oxygen, ODLPARENT-139 breaks it
-if [ "$STREAM" == "fluorine" ] || [ "$STREAM" == "neon" ]; then
+if [ "$STREAM" == "fluorine" ] || [ "$STREAM" == "neon" ] || [ "$STREAM" == "sodium" ]; then
sudo docker exec $docker_id /usr/bin/expect $scripts_path/test-karaf-oxygensafe.expect
else
sudo docker exec $docker_id /usr/bin/expect $scripts_path/test-karaf.expect
rtd-token: e9fa62bd60a39c22de631791309ccacc37a9929e
- gerrit-jenkins-cfg-merge:
jenkins-silos: releng sandbox
+ - gerrit-jenkins-cfg-verify:
+ jenkins-silos: releng sandbox
- gerrit-jenkins-sandbox-cleanup
- gerrit-jjb-deploy-job
- gerrit-jjb-merge:
further details.
https://docs.openstack.org/developer/python-openstackclient/
-- parameter:
- name: patches-to-build-parameter
- parameters:
- - string:
- name: PATCHES_TO_BUILD
- default: ''
- description: |
- Ordered list of patches to build in the format of project=changeset (checkout) or
- project:changeset (cherry-pick) for example: genius=32/53632/9,netvirt:59/50259/47.
- A topic is also allowed, for example: topic=binding-tlc-rpc
-
-- parameter:
- name: build-order-parameter
- parameters:
- - string:
- name: BUILD_ORDER
- default: '{build-order}'
- description: 'Build order for multipatch test when topic is used'
-
-- parameter:
- name: build-fast-parameter
- parameters:
- - string:
- name: BUILD_FAST
- default: '{build-fast}'
- description: 'Set true to build fast -Pq'
-
-- parameter:
- name: run-test-parameter
- parameters:
- - string:
- name: RUN_TEST
- default: '{run-test}'
- description: 'Set true to run test after build'
-
- parameter:
name: distribution-branch-to-build-parameter
parameters:
---
-- integration_view_csit: &integration_view_csit
- name: integration-view-csit
- view-type: list
- filter-executors: false
- filter-queue: false
- columns:
- - status
- - weather
- - job
- - last-success
- - last-failure
- - last-duration
- - build-button
- - robot-list
- recurse: false
-
-- releng_view: &releng_view_common
- name: releng-view-common
- view-type: list
- filter-executors: false
- filter-queue: false
- columns:
- - status
- - weather
- - job
- - last-success
- - last-failure
- - last-duration
- - build-button
- - jacoco
- - find-bugs
- - robot-list
- recurse: false
-
- project:
name: '00-Empty View'
views:
most-recent:
max-to-include: 25
check-start-time: true
- <<: *releng_view_common
+ view-type: list
+ filter-executors: false
+ filter-queue: false
+ columns:
+ - status
+ - weather
+ - job
+ - last-success
+ - last-failure
+ - last-duration
+ - build-button
+ - jacoco
+ - find-bugs
+ - robot-list
+ recurse: false
- project:
name: All-Sonar
- project:
name: snmp4sdn-sodium
jobs:
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: snmp4sdn
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-snmp4sdn/75649/
+ rtd-token: 55ee5e520f96e1fa691b277b2919e8d62cb0b71f
- odl-maven-jobs
stream: sodium
- project:
name: snmp4sdn-neon
jobs:
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: snmp4sdn
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-snmp4sdn/75649/
+ rtd-token: 55ee5e520f96e1fa691b277b2919e8d62cb0b71f
- odl-maven-jobs
stream: neon
- project:
name: snmp4sdn-fluorine
jobs:
+ - '{project-name}-rtd-jobs':
+ build-node: centos7-builder-2c-2g
+ project-pattern: snmp4sdn
+ rtd-build-url: https://readthedocs.org/api/v2/webhook/odl-snmp4sdn/75649/
+ rtd-token: 55ee5e520f96e1fa691b277b2919e8d62cb0b71f
- odl-maven-jobs
stream: fluorine
+++ /dev/null
-#!/bin/bash -x
-
-# vim: sw=4 ts=4 sts=4 et tw=72 :
-
-# force any errors to cause the script and job to end in failure
-set -xeu -o pipefail
-
-# Ensure that necessary variables are set to enable noninteractive mode in
-# commands.
-export DEBIAN_FRONTEND=noninteractive
-
-# To handle the prompt style that is expected all over the environment
-# with how use use robotframework we need to make sure that it is
-# consistent for any of the users that are created during dynamic spin
-# ups
-echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
-
-echo '---> Install OpenVSwitch 2.6.1'
-apt-get update -m
-apt-get install dh-autoreconf debhelper autoconf automake libssl-dev pkg-config bzip2 openssl python-all procps python-qt4 python-zopeinterface python-twisted-conch
-mkdir /root/ovs
-cd /root
-pwd
-wget http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz
-tar -xzvf openvswitch-2.6.1.tar.gz -C /root/ovs --strip-components=1
-cd /root/ovs
-DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
-cd /root
-dpkg -i openvswitch-common_2.6.1-1_amd64.deb openvswitch-switch_2.6.1-1_amd64.deb python-openvswitch_2.6.1-1_all.deb openvswitch-vtep_2.6.1-1_amd64.deb
-systemctl unmask openvswitch-switch
-service openvswitch-switch start
-service openvswitch-vtep start
-echo '---> Waiting 15 secs for services to start'
-sleep 15
-ovs-vsctl --version
-ovs-vsctl show
-# We want to see the entire ps output not just the pid
-# shellcheck disable=SC2009
-ps -elf | grep ovs
-# shellcheck disable=SC2009
-ps -elf | grep vtep
-echo '---> Finished installing OpenVSwitch 2.6.1'
-
-echo '---> Installing mininet'
-apt-get install mininet
-
-echo '---> Installing build pre-requisites'
-apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
-autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
-
-git clone https://github.com/intracom-telecom-sdn/mtcbench.git
-mtcbench/deploy/docker/provision.sh
-# TODO: remove workaround for build issue with mtcbench
-# when mtcbench dependency build correctly
-# https://github.com/intracom-telecom-sdn/mtcbench/issues/10
-mtcbench/build_mtcbench.sh || true
-cd mtcbench/oflops/cbench
-make
-cp cbench /usr/local/bin/
-
-echo '---> Installing exabgp'
-apt-get install exabgp
-
-# Install vlan for vlan based tests in VTN suites
-apt-get install vlan
-
-# Install netaddr package which is needed by some custom mininet topologies
-apt-get install python-netaddr
--- /dev/null
+---
+- import_playbook: ../common-packer/provision/baseline.yaml
+
+- hosts: all
+ become_user: root
+ become_method: sudo
+ vars:
+ ovs_version: 2.6.1
+ ovs_checksum: sha256:307b20aba6a179bf13e5da9ac242933c31349073762473a9d4782619c8c1cf0c
+
+ pre_tasks:
+ - include_role: name=lfit.system-update
+
+ tasks:
+ - name: 'Install OpenVSwitch {{ovs_version}}'
+ block:
+ - name: 'Install dependencies required for OpenVSwitch {{ovs_version}}'
+ apt: 'name={{item}} state=present'
+ with_items:
+ - dh-autoreconf
+ - debhelper
+ - autoconf
+ - automake
+ - libssl-dev
+ - pkg-config
+ - bzip2
+ - openssl
+ - python-all
+ - procps
+ - python-qt4
+ - python-zopeinterface
+ - python-twisted-conch
+ become: true
+ - name: Create OVS root
+ file:
+ path: /tmp/ovs
+ state: directory
+ mode: 0755
+ - name: 'Fetch OpenVSwitch {{ovs_version}} to /tmp'
+ get_url:
+ url: 'http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz'
+ dest: '/tmp/openvswitch-2.6.1.tar.gz'
+ checksum: '{{ovs_checksum}}'
+ - name: 'Unarchive OpenVSwitch {{ovs_version}}'
+ unarchive:
+ src: '/tmp/openvswitch-{{ovs_version}}.tar.gz'
+ dest: /tmp/ovs
+ remote_src: true
+ - name: 'Build OpenVSwitch {{ovs_version}}'
+ shell: DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
+ args:
+ chdir: '/tmp/ovs/openvswitch-{{ovs_version}}'
+ - name: 'Install OpenVSwitch {{ovs_version}}'
+ apt: 'deb={{item}}'
+ with_items:
+ - /tmp/ovs/openvswitch-common_2.6.1-1_amd64.deb
+ - /tmp/ovs/openvswitch-switch_2.6.1-1_amd64.deb
+ - /tmp/ovs/python-openvswitch_2.6.1-1_all.deb
+ - /tmp/ovs/openvswitch-vtep_2.6.1-1_amd64.deb
+ become: true
+ - name: Enable openvswitch-switch service
+ systemd:
+ name: openvswitch-switch
+ enabled: true
+ masked: false
+ become: true
+ - name: Enable openvswitch-vtep service
+ systemd:
+ name: openvswitch-vtep
+ enabled: true
+ masked: false
+ become: true
+
+ - name: Install Mininet
+ apt: name=mininet state=present
+ become: true
+
+ - name: Install exabgp
+ apt: name=exabgp state=present
+ become: true
+
+ - name: Install vlan for vlan based tests in VTN suites
+ apt: name=vlan state=present
+ become: true
+
+ - name: Install python-netaddr for custom mininet topologies
+ apt: name=python-netaddr state=present
+ become: true
+
+ post_tasks:
+ - name: System Reseal
+ script: ../common-packer/provision/system-reseal.sh
+ become: true
{
"variables": {
+ "ansible_roles_path": ".galaxy",
"base_image": null,
"distro": null,
"cloud_network": null,
},
"builders": [
{
- "type": "openstack",
- "region": "ca-ymq-1",
- "availability_zone": "ca-ymq-2",
- "ssh_username": "{{user `ssh_user`}}",
- "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+ "name": "vexxhost",
"image_name": "ZZCI - {{user `distro`}} - mininet-ovs-26 - {{isotime \"20060102-150405.000\"}}",
"instance_name": "{{user `distro`}}-mininet-ovs-26-{{uuid}}",
"source_image_name": "{{user `base_image`}}",
- "flavor": "v1-standard-1",
+ "type": "openstack",
+ "region": "ca-ymq-1",
+ "availability_zone": "ca-ymq-2",
"networks": [
"{{user `cloud_network`}}"
],
"user_data_file": "{{user `cloud_user_data`}}",
+ "ssh_username": "{{user `ssh_user`}}",
+ "ssh_proxy_host": "{{user `ssh_proxy_host`}}",
+ "flavor": "v1-standard-1",
"metadata": {
"ci_managed": "yes"
}
{
"type": "shell",
"scripts": [
- "provision/baseline.sh",
- "provision/mininet-ovs-2.6.sh",
- "provision/system_reseal_local_env.sh",
- "provision/system_reseal.sh"
+ "common-packer/provision/install-python.sh"
],
"execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi"
+ },
+ {
+ "type": "shell-local",
+ "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
+ },
+ {
+ "type": "ansible",
+ "playbook_file": "provision/mininet-ovs-2.6.yaml",
+ "ansible_env_vars": [
+ "ANSIBLE_NOCOWS=1",
+ "ANSIBLE_PIPELINING=True",
+ "ANSIBLE_ROLES_PATH={{user `ansible_roles_path`}}",
+ "ANSIBLE_CALLBACK_WHITELIST=profile_tasks",
+ "ANSIBLE_STDOUT_CALLBACK=yaml"
+ ]
}
]
}