summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorZhijiang Hu <hu.zhijiang@zte.com.cn>2017-04-25 05:23:19 -0400
committerZhijiang Hu <hu.zhijiang@zte.com.cn>2017-04-25 05:23:19 -0400
commita9e9b56798a7478774270863775e0fee6c80e25b (patch)
tree2302b412fb95b4e117101fe839d2e591efa725dd /jjb
parentbe121ddfd0bc9f7aeb7e1ac931cdbf9d85578d0d (diff)
Add set -o to daisy4nfv-build.sh
By using set -o, this can prevent CI from uploading *.properties files without *.bin to artifact.opnfv.org if build was failed. This once happened to [1]. [1] http://artifacts.opnfv.org/daisy/opnfv-2017-04-25_06-57-05.properties Change-Id: I26c3112af1d73a84df05c3852038c99d7070ab59 Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/daisy4nfv/daisy4nfv-build.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/jjb/daisy4nfv/daisy4nfv-build.sh b/jjb/daisy4nfv/daisy4nfv-build.sh
index 375d80733..925f68e18 100755
--- a/jjb/daisy4nfv/daisy4nfv-build.sh
+++ b/jjb/daisy4nfv/daisy4nfv-build.sh
@@ -1,5 +1,9 @@
#!/bin/bash
+set -o errexit
+set -o nounset
+set -o pipefail
+
echo "--------------------------------------------------------"
echo "This is diasy4nfv build job!"
echo "--------------------------------------------------------"