Stream Jeannie step output to logs
This commit is contained in:
parent
1bdde9c128
commit
ea4576c707
5
jeannie
5
jeannie
|
|
@ -876,14 +876,14 @@ run_step() {
|
||||||
|
|
||||||
if jeannie_verbose_enabled; then
|
if jeannie_verbose_enabled; then
|
||||||
set +e
|
set +e
|
||||||
"$@" 2>&1 | redact_sensitive_output | tee "${step_log}"
|
"$@" 2>&1 | redact_sensitive_output | tee "${step_log}" | tee -a "${JEANNIE_LOG_FILE}"
|
||||||
status=${PIPESTATUS[0]}
|
status=${PIPESTATUS[0]}
|
||||||
set -e
|
set -e
|
||||||
else
|
else
|
||||||
set +e
|
set +e
|
||||||
(
|
(
|
||||||
set +e
|
set +e
|
||||||
"$@" 2>&1 | redact_sensitive_output >"${step_log}"
|
"$@" 2>&1 | redact_sensitive_output | tee "${step_log}" >>"${JEANNIE_LOG_FILE}"
|
||||||
printf '%s\n' "${PIPESTATUS[0]}" >"${status_file}"
|
printf '%s\n' "${PIPESTATUS[0]}" >"${status_file}"
|
||||||
) &
|
) &
|
||||||
progress_pid=$!
|
progress_pid=$!
|
||||||
|
|
@ -902,7 +902,6 @@ run_step() {
|
||||||
set -e
|
set -e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat "${step_log}" >>"${JEANNIE_LOG_FILE}"
|
|
||||||
printf 'Finished: %s\n' "$(date -Is)" >>"${JEANNIE_LOG_FILE}"
|
printf 'Finished: %s\n' "$(date -Is)" >>"${JEANNIE_LOG_FILE}"
|
||||||
|
|
||||||
if ((status == 0)); then
|
if ((status == 0)); then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue