ci: Make sure .jenkins script stops when individual scripts returned error

Change-Id: Ie8bacfb957f6b54f04d9d09e64e79a594cdfc96d
Refs: #2089
diff --git a/.jenkins b/.jenkins
index 84dc23d..afc4699 100755
--- a/.jenkins
+++ b/.jenkins
@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+set -e
 
 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
 
diff --git a/.jenkins.d/10-build.sh b/.jenkins.d/10-build.sh
index e8811bd..24e76e1 100755
--- a/.jenkins.d/10-build.sh
+++ b/.jenkins.d/10-build.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 set -x
+set -e
 
 # Cleanup
 sudo ./waf distclean -j1 --color=yes
diff --git a/.jenkins.d/20-tests.sh b/.jenkins.d/20-tests.sh
index ab404ae..c9b1e94 100755
--- a/.jenkins.d/20-tests.sh
+++ b/.jenkins.d/20-tests.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 set -x
+set -e
 
 # Prepare environment
 rm -Rf ~/.ndnx ~/.ndn
diff --git a/.jenkins.d/30-coverage.sh b/.jenkins.d/30-coverage.sh
index 7b8f1af..ccbb62e 100755
--- a/.jenkins.d/30-coverage.sh
+++ b/.jenkins.d/30-coverage.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/env bash
 set -x
+set -e
 
 IS_COVR=$( python -c "print 'yes' if 'code-coverage' in '$JOB_NAME' else 'no'" )