From: Venkatrangan Govindarajan Date: Mon, 15 Apr 2019 08:52:21 +0000 (+0000) Subject: Merge "Provision mininet-ovs-26 image with Ansible" X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=687df454b118b923bddf589c149b996bdeab48f8;hp=4fd9ebb0703c1c5ba1e96b95573c73293ee3c23f;p=releng%2Fbuilder.git Merge "Provision mininet-ovs-26 image with Ansible" --- diff --git a/jjb/integration/integration-test-jobs.yaml b/jjb/integration/integration-test-jobs.yaml index fb2caf47e..2bb429285 100644 --- a/jjb/integration/integration-test-jobs.yaml +++ b/jjb/integration/integration-test-jobs.yaml @@ -23,7 +23,7 @@ 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 @@ -32,7 +32,7 @@ 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 @@ -375,14 +375,28 @@ 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: @@ -629,7 +643,21 @@ - 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 @@ -669,4 +697,18 @@ - 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 diff --git a/jjb/integration/multipatch-distribution.sh b/jjb/integration/multipatch-distribution.sh index 9021af065..87dd099f6 100755 --- a/jjb/integration/multipatch-distribution.sh +++ b/jjb/integration/multipatch-distribution.sh @@ -37,11 +37,6 @@ if [ -n "$GERRIT_EVENT_COMMENT_TEXT" ]; then 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) @@ -152,17 +147,20 @@ do 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: @@ -202,6 +200,12 @@ fi # 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 \ diff --git a/jjb/lf-infra/lf-infra-jobs.yaml b/jjb/lf-infra/lf-infra-jobs.yaml index 07d01ba20..fdea58fa3 100644 --- a/jjb/lf-infra/lf-infra-jobs.yaml +++ b/jjb/lf-infra/lf-infra-jobs.yaml @@ -145,7 +145,8 @@ 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 diff --git a/jjb/packaging/build-rpm-snap.sh b/jjb/packaging/build-rpm-snap.sh index 57b8de52e..86f126cca 100644 --- a/jjb/packaging/build-rpm-snap.sh +++ b/jjb/packaging/build-rpm-snap.sh @@ -19,8 +19,17 @@ if [ "$STREAM" == "fluorine" ]; then 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 diff --git a/jjb/packaging/packaging.yaml b/jjb/packaging/packaging.yaml index 2eaad7a29..eb19a6517 100644 --- a/jjb/packaging/packaging.yaml +++ b/jjb/packaging/packaging.yaml @@ -27,6 +27,7 @@ stream: - neon - fluorine + - sodium distro: - opensuse-42 @@ -217,10 +218,10 @@ 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 @@ -231,46 +232,15 @@ - 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 @@ -315,27 +285,6 @@ 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 @@ -357,15 +306,9 @@ - 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' @@ -374,6 +317,7 @@ # 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' @@ -386,8 +330,16 @@ - 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' @@ -396,6 +348,7 @@ # 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' @@ -408,6 +361,12 @@ - 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: diff --git a/jjb/packaging/test-rpm-docker.sh b/jjb/packaging/test-rpm-docker.sh index 980011d00..c68ea3964 100644 --- a/jjb/packaging/test-rpm-docker.sh +++ b/jjb/packaging/test-rpm-docker.sh @@ -26,7 +26,7 @@ sudo docker exec $docker_id /bin/bash $scripts_path/start-odl.sh 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 diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml index 8b35fbf77..071ca8bc4 100644 --- a/jjb/releng-jobs.yaml +++ b/jjb/releng-jobs.yaml @@ -8,6 +8,8 @@ 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: diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml index 7c0a91643..e106e2559 100644 --- a/jjb/releng-macros.yaml +++ b/jjb/releng-macros.yaml @@ -59,41 +59,6 @@ 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: diff --git a/jjb/releng-views.yaml b/jjb/releng-views.yaml index 18e5efb10..d9b7c2f38 100644 --- a/jjb/releng-views.yaml +++ b/jjb/releng-views.yaml @@ -1,38 +1,4 @@ --- -- 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: @@ -52,7 +18,21 @@ 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