summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-09-04 17:07:30 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-09-04 17:07:30 +0000
commit654bd03af21b420227068465dc7cb89ab471b308 (patch)
treec1658198313935d76cc68b833d16c2a7c626d2d0
parent7fc1c669cc74d4a421043ebd191b848c3ee38e17 (diff)
parent76f6818b3b1df294cb4e058c43f9595d2c563fb4 (diff)
Merge "xci: Log functest results to console for daily jobs"
-rw-r--r--jjb/xci/xci-daily-jobs.yaml21
1 files changed, 20 insertions, 1 deletions
diff --git a/jjb/xci/xci-daily-jobs.yaml b/jjb/xci/xci-daily-jobs.yaml
index 6e5135439..5f75b0e28 100644
--- a/jjb/xci/xci-daily-jobs.yaml
+++ b/jjb/xci/xci-daily-jobs.yaml
@@ -347,10 +347,29 @@
builders:
- shell: |
#!/bin/bash
- set -o errexit
set -o pipefail
ssh root@192.168.122.2 "/root/run-functest.sh"
+ functest_exit=$?
+
+ case ${DEPLOY_SCENARIO[0]} in
+ os-*)
+ FUNCTEST_LOG=/root/functest-results/functest.log
+ ;;
+ k8-*)
+ FUNCTEST_LOG=/root/functest-results/functest-kubernetes.log
+ ;;
+ *)
+ echo "Unable to determine the installer. Exiting!"
+ exit $functest_exit
+ ;;
+ esac
+
+ echo "Functest log"
+ echo "---------------------------------------------------------------------------------"
+ ssh root@192.168.122.2 "cat $FUNCTEST_LOG"
+ echo "---------------------------------------------------------------------------------"
+ exit ${functest_exit}
- builder:
name: 'xci-daily-yardstick-macro'
builders: