From 75a8bbd3bee35fbe26c5c10ff35d05cda9796557 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Wed, 18 Jan 2023 18:14:44 +0200 Subject: [PATCH] different retry --- .github/workflows/common_library_tests.yaml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/common_library_tests.yaml b/.github/workflows/common_library_tests.yaml index 122b7af071..00baec5aab 100644 --- a/.github/workflows/common_library_tests.yaml +++ b/.github/workflows/common_library_tests.yaml @@ -70,20 +70,12 @@ jobs: - name: Run Unit-tests shell: bash - env: - retries: 5 run: | - x=$retries - - while [ $x -gt 0 ]; - do - if (helm plugin list | grep unittest); then - # If it succeeds set it to 1 and the next command will make it zero and exit the loop - x=1 - fi - helm plugin install https://github.com/quintush/helm-unittest --version v${helmUnitVersion} && x=1 - x=$(($x-1)) - done + # Retry helm plugin install + helm plugin install https://github.com/quintush/helm-unittest --version v${helmUnitVersion} || \ + helm plugin install https://github.com/quintush/helm-unittest --version v${helmUnitVersion} || \ + helm plugin install https://github.com/quintush/helm-unittest --version v${helmUnitVersion} || \ + helm plugin install https://github.com/quintush/helm-unittest --version v${helmUnitVersion} # Run tests cd library/common-test/