summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-09-24 21:56:40 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-09-28 02:02:30 +0900
commita66f639d2dd0cc2c0122ec410f712461faca20f1 (patch)
treee7201ff88a3eff9ce8fb9b2955efa22c96b9e339 /jjb
parente79c777acae656dbd7fa72de7675a4cd1bae148c (diff)
[doctor] archive functest log after suite test
By using 'postbuildscript', functest suite log will be captured after a job execution even though the job failed. Change-Id: I3102a6973d696fb74b6c244028fd8c57c59fbc6a Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/doctor/doctor.yml18
1 files changed, 13 insertions, 5 deletions
diff --git a/jjb/doctor/doctor.yml b/jjb/doctor/doctor.yml
index f93ac9bef..4958ca2b5 100644
--- a/jjb/doctor/doctor.yml
+++ b/jjb/doctor/doctor.yml
@@ -136,9 +136,17 @@
TESTCASE_OPTIONS=-e INSPECTOR_TYPE=congress -v $WORKSPACE:$HOME/opnfv/repos/doctor
block: true
same-node: true
+
+ publishers:
+ - postbuildscript:
+ builders:
+ - functest-copy-suite-log:
+ suite: '{project}'
+ - archive:
+ artifacts: '{project}.log'
+
+- builder:
+ name: functest-copy-suite-log
+ builders:
- shell: |
- logfile=$HOME/opnfv/functest/results/{stream}/doctor.log
- echo
- echo "[$logfile]"
- echo
- [ -e $logfile ] && cat $logfile
+ cp $HOME/opnfv/functest/results/${{GIT_BRANCH##*/}}/{suite}.log $WORKSPACE/