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
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