diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2022-08-05 13:01:48 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2022-08-05 13:01:48 +0000 |
commit | c0708dea5ee4c321cdd28d8e728c8840f3238aa4 (patch) | |
tree | 218c2fb9b0b78e87232bdc3a781d3972bdcc135c | |
parent | 4d4da8f0d8cf05e6ebca9a66e86f3118ef4a4814 (diff) |
jenkins-helpers.sh (run_step): Improve failure output
... in "results" file. Output step name for failed steps.
Change-Id: Id415f942894b3e10d7b17e9a10d350b88ae1dec3
-rw-r--r-- | jenkins-helpers.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh index 1c09424d..b04703e1 100644 --- a/jenkins-helpers.sh +++ b/jenkins-helpers.sh @@ -1303,6 +1303,12 @@ run_step () done pretty_step=$(echo "$pretty_step" | tr " /" "-") + if [ x"$success_result" != x"x" ]; then + cat >> $run_step_top_artifacts/results <<EOF +# ${step[@]}: +EOF + fi + run_step_count=$(($run_step_count+1)) # Start running steps if: @@ -1365,7 +1371,7 @@ run_step () return $EXTERNAL_FAIL ;; *:stop_on_fail|*:reset_on_fail) - echo "STOPPING at ${step[*]} due to internal failure" + echo "STOPPING at ${step[*]} due to failure" return $INTERNAL_FAIL ;; *:skip_on_fail) @@ -1381,7 +1387,6 @@ run_step () if [ x"$run_step_status" = x"0" ] && [ x"$success_result" != x"x" ]; then cat >> $run_step_top_artifacts/results <<EOF -# ${step[@]}: $success_result EOF fi |