Merge "Add upgrade tests job"
authorDaniel Farrell <dfarrell@redhat.com>
Tue, 27 Nov 2018 02:40:23 +0000 (02:40 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 27 Nov 2018 02:40:23 +0000 (02:40 +0000)
jjb/packaging/ansible.yaml
jjb/packaging/test-ansible-rpm-upgrade.sh [new file with mode: 0644]

index f3e9a2566aa9a5110843e9f2b55030ec860fe914..7176d06a3d2386cd0c3e1ab1054efe093068ca0f 100644 (file)
@@ -47,6 +47,7 @@
       - shell: !include-raw: setup-ansible-rpm.sh
       - shell: !include-raw: test-ansible-rpm-default-config.sh
       - shell: !include-raw: test-ansible-rpm-custom-config.sh
+      - shell: !include-raw: test-ansible-rpm-upgrade.sh
 
     triggers:
       - timed: '@weekly'
diff --git a/jjb/packaging/test-ansible-rpm-upgrade.sh b/jjb/packaging/test-ansible-rpm-upgrade.sh
new file mode 100644 (file)
index 0000000..c5a5c55
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Uninstall ODL from previous test
+# This is to ensure these tests run independant
+# from any other tests
+sudo yum remove opendaylight -y
+
+# Remove the ODL directory
+sudo rm -rf /opt/opendaylight
+
+# Execute the upgrade tests
+sudo ansible-playbook -i "localhost," -c local $WORKSPACE/ansible/tests/test-odl-upgrade.yaml -v