From: Jamo Luhrsen Date: Thu, 4 Oct 2018 16:51:52 +0000 (+0000) Subject: Merge "Add Neon packaging support, tests" X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=4dc9a006d530872d30f453180e75f669a5322f9a;hp=b090051b51baf30f2ead5bd51828d31e6b91fb6d;p=releng%2Fbuilder.git Merge "Add Neon packaging support, tests" --- diff --git a/jjb/packaging/build-rpm-snap.sh b/jjb/packaging/build-rpm-snap.sh index cffc29bdb..707635038 100644 --- a/jjb/packaging/build-rpm-snap.sh +++ b/jjb/packaging/build-rpm-snap.sh @@ -19,6 +19,8 @@ if [ "$STREAM" == "oxygen" ]; then VERSION_MAJOR=8 elif [ "$STREAM" == "fluorine" ]; then VERSION_MAJOR=9 +elif [ "$STREAM" == "neon" ]; then + VERSION_MAJOR=10 else echo "Unable to convert stream to major version" exit 1 diff --git a/jjb/packaging/packaging.yaml b/jjb/packaging/packaging.yaml index 0d00e97ff..fd0ce972e 100644 --- a/jjb/packaging/packaging.yaml +++ b/jjb/packaging/packaging.yaml @@ -239,6 +239,28 @@ - shell: !include-raw: build-rpm-snap.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-2393/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-20180925.093600-5.zip' + - shell: !include-raw-escape: build-rpm.sh + - install-test-uninstall-rpm + + # Test latest Neon snapshot + - inject: + properties-content: 'STREAM=neon' + - shell: !include-raw: build-rpm-snap.sh + - install-test-uninstall-rpm + triggers: - gerrit-trigger-patch-submitted: gerrit-server-name: '{gerrit-server-name}' @@ -320,6 +342,28 @@ - shell: !include-raw: build-rpm-snap.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-2393/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-20180925.093600-5.zip' + - shell: !include-raw-escape: build-rpm.sh + - install-test-uninstall-rpm + + # Test latest Neon snapshot + - inject: + properties-content: 'STREAM=neon' + - shell: !include-raw: build-rpm-snap.sh + - install-test-uninstall-rpm + triggers: - timed: '@daily' - gerrit: diff --git a/jjb/packaging/test-rpm-docker.sh b/jjb/packaging/test-rpm-docker.sh index c91acc53a..a7faeb446 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" == "oxygen" ] || [ "$STREAM" == "fluorine" ]; then +if [ "$STREAM" == "oxygen" ] || [ "$STREAM" == "fluorine" ] || [ "$STREAM" == "neon" ]; 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