summaryrefslogtreecommitdiffstats
path: root/jjb/functest
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-09-28 02:52:53 +0000
committerLinda Wang <wangwulin@huawei.com>2017-09-28 08:32:28 +0000
commit444d4a052978446256a6cc3e4f4cfe0114709a77 (patch)
tree56769a8b5af1e8f7454472b4e9454f9eecadfd9d /jjb/functest
parent88f0b856c18abca765a3d4a6da1f7849096b9b73 (diff)
[Functest] Block daily job if healthcheck fails
Change-Id: I3ec48bd337f8dc9100ff82f53067954925245dfa Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'jjb/functest')
-rwxr-xr-xjjb/functest/functest-alpine.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/jjb/functest/functest-alpine.sh b/jjb/functest/functest-alpine.sh
index 8ede529a1..9a415ff04 100755
--- a/jjb/functest/functest-alpine.sh
+++ b/jjb/functest/functest-alpine.sh
@@ -19,7 +19,11 @@ run_tiers() {
eval ${cmd}
ret_value=$?
if [ ${ret_value} != 0 ]; then
- echo ${ret_value} > ${ret_val_file}
+ echo ${ret_value} > ${ret_val_file}
+ if [ ${tier} == 'healthcheck' ]; then
+ echo "Healthcheck tier failed. Exiting Functest..."
+ exit 1
+ fi
fi
done
}