mirror of
https://github.com/truenas/charts.git
synced 2026-06-16 23:19:15 +08:00
different retry
This commit is contained in:
18
.github/workflows/common_library_tests.yaml
vendored
18
.github/workflows/common_library_tests.yaml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user