sudo yum install -y nmap
- shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
+ - shell: !include-raw: uninstall-rpm.sh
- lf-infra-deploy-maven-file:
global-settings-file: 'global-settings'
settings-file: 'packaging-settings'
sudo yum install -y nmap
- shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
+ - shell: !include-raw: uninstall-rpm.sh
publishers:
# TODO: Remove the archive publisher
- shell: !include-raw: start-odl.sh
- shell: !include-raw: test-karaf.expect
- shell: !include-raw: stop-odl.sh
+ - shell: !include-raw: uninstall-rpm.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 yum remove -y opendaylight
+
+# Verify ODL not installed
+if yum list installed 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