From: Ryota MIBU Date: Fri, 3 Mar 2017 20:13:14 +0000 (+0000) Subject: [doctor] create symbolic link to capture functest log X-Git-Tag: danube.1.0~173 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=618c18a42c286ecec72c3cfc9a9e2524d911e5d4;hp=63d8563d811c0a8cee9dcf64dd79e603c0809c81;p=releng.git [doctor] create symbolic link to capture functest log Change-Id: I2eaa57351ebfbc36a142b977e7e22b9d8c4943cd Signed-off-by: Ryota MIBU --- diff --git a/jjb/doctor/doctor.yml b/jjb/doctor/doctor.yml index 5314996eb..7b47701b8 100644 --- a/jjb/doctor/doctor.yml +++ b/jjb/doctor/doctor.yml @@ -145,6 +145,15 @@ builders: - 'clean-workspace-log' + - shell: | + # NOTE: Create symbolic link, so that we can archive file outside + # of $WORKSPACE . + # NOTE: We are printing all logs under 'tests/' during test run, + # so this symbolic link should not be in 'tests/'. + # Otherwise, we'll the same log twice in jenkins console log. + functest_log="$HOME/opnfv/functest/results/{stream}/{project}.log" + to_be_archived="$WORKSPACE/functest-{project}.log" + ln -sf $functest_log $to_be_archived - 'functest-suite-builder' - shell: | functest_log="$HOME/opnfv/functest/results/{stream}/{project}.log" @@ -153,15 +162,10 @@ grep -e ' OK$' $functest_log || exit 1 publishers: - - postbuildscript: - builders: - - shell: | - cp $HOME/opnfv/functest/results/{stream}/{project}.log \ - tests/functest-{project}.log - script-only-if-succeeded: False - script-only-if-failed: False - archive: artifacts: 'tests/*.log' + - archive: + artifacts: 'functest-{project}.log' #####################################