Skip to content

Commit

Permalink
Hide errors until last try
Browse files Browse the repository at this point in the history
  • Loading branch information
zdrapela committed Jan 8, 2025
1 parent cb5e4f6 commit 146796b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .ibm/pipelines/utils.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

retrieve_pod_logs() {
local pod_name=$1; local container=$2; local namespace=$3
Expand Down Expand Up @@ -123,19 +123,14 @@ droute_send() {
fi
fi

if ((i <= max_attempts)); then
echo "Data Router error details:"
echo "${output}"
sleep "${wait_seconds}"
else
if ((i = max_attempts)); then
echo "Failed to send test results after ${max_attempts} attempts."
echo "Last Data Router error details:"
echo "${output}"
echo "Troubleshooting steps:"
echo "1. Restart $droute_pod_name in $droute_project project/namespace"
echo "2. Check the Data Router documentation: https://spaces.redhat.com/pages/viewpage.action?pageId=115488042"
echo "3. Ask for help at Slack: #forum-dno-datarouter"
return 1
fi
done

Expand Down

0 comments on commit 146796b

Please sign in to comment.