[Functest] Push logs to artifacts regardless if loop fails
[releng.git] / jjb / functest / functest-loop.sh
index 5abddfd..7385623 100755 (executable)
@@ -10,3 +10,9 @@ else
 fi
 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 0
\ No newline at end of file