Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Capture the command output logs.
Browse files Browse the repository at this point in the history
This can prove useful in the future if we want to debug a particular run
but we no longer have the container around - it got deleted, or we no
longer have the Jenkins run.
  • Loading branch information
alexstoick committed Oct 11, 2019
1 parent ee5f38b commit 1162492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/pipeline/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
- "-c"
- "while true; do if [ -e /data/first-step.txt ]; then ((
{{ range $index, $command := .Step.Commands }}
({{ $command }}) &&
({{ $command }}) 2>&1 | tee /data/output/output-command-{{$index}}.log &&
{{ end }}
touch /data/main-passed.txt) || (touch /data/main-failed.txt && exit 1)) && touch /data/main.txt; break; fi; done"
env:
Expand Down

0 comments on commit 1162492

Please sign in to comment.