From 1a68455d59c4161997f706729cd70f31c9ab679d Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Tue, 30 Aug 2016 16:49:36 +0200 Subject: [Functest] Push logs to artifacts regardless if loop fails This prevents from exiting the job without pushing the logs to artifacts if the functest loop fails. JIRA: FUNCTEST-443 Change-Id: I6925b5855326df809dbce9f389b10be8a00cf8de Signed-off-by: jose.lausuch --- jjb/functest/functest-exit.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 jjb/functest/functest-exit.sh (limited to 'jjb/functest/functest-exit.sh') diff --git a/jjb/functest/functest-exit.sh b/jjb/functest/functest-exit.sh new file mode 100644 index 000000000..f2aa2d032 --- /dev/null +++ b/jjb/functest/functest-exit.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +branch=${GIT_BRANCH##*/} +ret_val_file="${HOME}/opnfv/functest/results/${branch}/return_value" +if [ ! -f ${ret_val_file} ]; then + echo "Return value not found!" + exit -1 +fi + +ret_val=`cat ${ret_val_file}` + +exit ret_val \ No newline at end of file -- cgit 1.2.3-korg