Skip to content

Commit

Permalink
Added retries to getting k8s logs in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvenga committed Jul 25, 2022
1 parent 9c2a9c1 commit 4973447
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,16 @@ jobs:
dotnet test ./tests/Contrast.K8s.AgentOperator.FunctionalTests/Contrast.K8s.AgentOperator.FunctionalTests.csproj
shell: bash
- name: Dump Operator Logs
uses: nick-fields/retry@v2
if: ${{ always() }}
run: |
set -xe
kubectl --namespace testing-agent-operator get deployment contrast-agent-operator -o yaml
kubectl --namespace testing-agent-operator logs deployment/contrast-agent-operator
shell: bash
with:
timeout_minutes: 10
max_attempts: 5
command: |
set -xe
kubectl --namespace testing-agent-operator get deployment contrast-agent-operator -o yaml
kubectl --namespace testing-agent-operator logs deployment/contrast-agent-operator
shell: bash
test-manifests:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 4973447

Please sign in to comment.