Brian O'Connor

Adding set -e to build commands

Change-Id: I72d02db1f6f8484f4ffb2d00406e6af2c866a7fb
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Builds the ONOS from source. 3 # Builds the ONOS from source.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Builds the ONOS Java API docs. 3 # Builds the ONOS Java API docs.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Changes ONOS version in POM files, and other release artifacts. 3 # Changes ONOS version in POM files, and other release artifacts.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Packages ONOS distributable into onos.tar.gz, onos.zip or a deb file 3 # Packages ONOS distributable into onos.tar.gz, onos.zip or a deb file
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 # Build the staging directory used to produce the packages 8 # Build the staging directory used to produce the packages
7 function build_stage_dir() { 9 function build_stage_dir() {
8 # Make sure we have the original apache karaf bits first 10 # Make sure we have the original apache karaf bits first
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Packages ONOS test facilities into onos-test.tar.gz 3 # Packages ONOS test facilities into onos-test.tar.gz
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Drives the ONOS snapshot process. 3 # Drives the ONOS snapshot process.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Launches the ONOS tests on the current cell environment. 3 # Launches the ONOS tests on the current cell environment.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
2 # ----------------------------------------------------------------------------- 2 # -----------------------------------------------------------------------------
3 # Uploads ONOS distributable bits. 3 # Uploads ONOS distributable bits.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 +
6 +set -e
7 +
5 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
6 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
7 10
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
3 # Uploads ONOS Java API docs. 3 # Uploads ONOS Java API docs.
4 # ----------------------------------------------------------------------------- 4 # -----------------------------------------------------------------------------
5 5
6 +set -e
7 +
6 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 8 [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7 . $ONOS_ROOT/tools/build/envDefaults 9 . $ONOS_ROOT/tools/build/envDefaults
8 10
......