Allow errors to terminate the build

Change-Id: Ice15e942b57785566063181f9342fe344285f263
diff --git a/tools/build/onos-build-and-upload b/tools/build/onos-build-and-upload
index ba4441c..97657c9 100755
--- a/tools/build/onos-build-and-upload
+++ b/tools/build/onos-build-and-upload
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -ex
 # -----------------------------------------------------------------------------
 # Builds the release bits and uploads them.
 # -----------------------------------------------------------------------------
@@ -13,11 +13,8 @@
     dryRun=1
 fi
 
-set -e
-set -x
-
 # fix version strings, build artifacts, upload artifacts
-onos-release $VERSION $DRY_RUN | tee build.log
+onos-release $VERSION $DRY_RUN
 
 if [ $dryRun -eq 0 ]; then
     # upload docs
diff --git a/tools/build/onos-release b/tools/build/onos-release
index 42ad942..e841b3a 100755
--- a/tools/build/onos-release
+++ b/tools/build/onos-release
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -ex
 # -----------------------------------------------------------------------------
 # Drives the ONOS release process.
 # -----------------------------------------------------------------------------