builders:
- shell: !include-raw: install-deb.sh
- shell: !include-raw: start-odl.sh
+ - shell: !include-raw-escape: test-ports-nofeature.sh
- shell: |
# Install expect to interact with Karaf shell
- sudo apt-get install -y expect
# Install nmap to check status of ODL's SSH port
- sudo apt-get install -y nmap
+ sudo apt-get install -y expect nmap
- shell: !include-raw: test-karaf-oxygensafe.expect
+ # Disable this test until ODLPARENT-139 is fixed
+ # - shell: !include-raw-escape: test-rest-ok.sh
- shell: !include-raw: stop-odl.sh
+ - shell: !include-raw: uninstall-deb.sh
publishers:
- lf-infra-publish
--- /dev/null
+#!/bin/bash
+
+# Options:
+# -x: Echo commands
+# -e: Fail on errors
+# -o pipefail: Fail on errors in scripts this calls, give stacktrace
+set -ex -o pipefail
+
+# Uninstall ODL
+sudo dpkg --purge opendaylight
+
+# Verify ODL not installed
+if dpkg -s opendaylight; then
+ # Fail if exit code 0, ie ODL is still installed
+ echo "OpenDaylight unexpectedly still installed"
+ exit 1
+else
+ echo "OpenDaylight not installed, as expected"
+fi