Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,17 @@ spec:
imagePullPolicy: IfNotPresent
onError: continue # progress even if the step fails so we can see the debug logs
command: [sh, -c]
env:
- name: HOMEDIR
value: "$(params.HOMEDIR)"
args:
# Format the JSON output to wrap lines at 8000 characters per line.
# The report can get very large, so add some line breaks
# rather than print it as a single line. This makes it easier to render
# in the UI, easier to copy/paste, and less likely to cause problems
# with logging systems or other consumers of the data (assuming they
# correctly parse the full output).
- "jq . $(params.HOMEDIR)/report-json.json | awk '{gsub(/^ +/, \"\"); acc += length; if (acc >= 8000) { printf \"\\n\"; acc=length } printf $0 }'"
- "jq . \"${HOMEDIR}/report-json.json\" | awk '{gsub(/^ +/, \"\"); acc += length; if (acc >= 8000) { printf \"\\n\"; acc=length } printf $0 }'"
Comment thread
robnester-rh marked this conversation as resolved.

- name: summary
image: quay.io/conforma/cli:latest@sha256:af5bf40b0544d6d1d45bcdd8236f6393399ab6e7c5e83b815a23100d8389e945
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,14 +475,17 @@ spec:
imagePullPolicy: IfNotPresent
onError: continue # progress even if the step fails so we can see the debug logs
command: [sh, -c]
env:
- name: HOMEDIR
value: "$(params.HOMEDIR)"
args:
# Format the JSON output to wrap lines at 8000 characters per line.
# The report can get very large, so add some line breaks
# rather than print it as a single line. This makes it easier to render
# in the UI, easier to copy/paste, and less likely to cause problems
# with logging systems or other consumers of the data (assuming they
# correctly parse the full output).
- "jq . $(params.HOMEDIR)/report-json.json | awk '{gsub(/^ +/, \"\"); acc += length; if (acc >= 8000) { printf \"\\n\"; acc=length } printf $0 }'"
- "jq . \"${HOMEDIR}/report-json.json\" | awk '{gsub(/^ +/, \"\"); acc += length; if (acc >= 8000) { printf \"\\n\"; acc=length } printf $0 }'"

- name: summary
computeResources:
Expand Down
Loading