[doctor] create symbolic link to capture functest log
[releng.git] / jjb / doctor / doctor.yml
index 2267a28..7b47701 100644 (file)
 
     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"
         - archive:
             artifacts: 'tests/*.log'
         - archive:
-            artifacts: '$HOME/opnfv/functest/results/{stream}/{project}.log'
+            artifacts: 'functest-{project}.log'
 
 
 #####################################