From 4973447db14158cdce11224439cf184ecadbff2d Mon Sep 17 00:00:00 2001 From: Mark Lopez Date: Mon, 25 Jul 2022 17:45:52 -0500 Subject: [PATCH] Added retries to getting k8s logs in CI. --- .github/workflows/pipeline.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 9e9faad4..67a53312 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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: