[Functest] Add push-logs to functest-suite job 33/28233/2
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 7 Feb 2017 15:32:49 +0000 (16:32 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Tue, 7 Feb 2017 16:24:29 +0000 (17:24 +0100)
Functest suite is used now by different projects
for verify jobs for example. Some of these jobs
would like to have the logs in artifacts for
further troubleshooting.

Change-Id: I2e0c2d9539c2e195a5c4fb6c4708d82e512adf94
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
jjb/functest/functest-ci-jobs.yml
jjb/functest/functest-suite.sh

index 7478e2a..7174045 100644 (file)
         - 'functest-cleanup'
         - 'set-functest-env'
         - 'functest-suite'
+        - 'functest-store-results'
+        - 'functest-exit'
 
 - builder:
     name: functest-daily
index 28d7e3d..f28d3d0 100755 (executable)
@@ -13,5 +13,7 @@ container_id=$(docker ps -a | grep opnfv/functest | awk '{print $1}' | head -1)
 docker exec $container_id $cmd
 
 ret_value=$?
+ret_val_file="${HOME}/opnfv/functest/results/${BRANCH##*/}/return_value"
+echo ${ret_value}>${ret_val_file}
 
-exit $ret_value
+exit 0