Add retry args to prevent one-off failures in the future
This commit is contained in:
parent
9039a75d3c
commit
b569e18c43
@ -43,6 +43,7 @@ Lint:
|
|||||||
|
|
||||||
Test:
|
Test:
|
||||||
stage: test
|
stage: test
|
||||||
|
retry: 1
|
||||||
interruptible: yes
|
interruptible: yes
|
||||||
except:
|
except:
|
||||||
- pipelines
|
- pipelines
|
||||||
@ -53,6 +54,7 @@ Test:
|
|||||||
|
|
||||||
Play_Against_Pis:
|
Play_Against_Pis:
|
||||||
stage: play
|
stage: play
|
||||||
|
retry: 1
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -l manufacturers_raspi site.yml --vault-password-file /vaultpw || error="$?"
|
- ansible-playbook -l manufacturers_raspi site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
@ -65,6 +67,7 @@ Play_Against_Desktops:
|
|||||||
- if [ -n "$error" ]; then echo "Return code $error"; false; fi
|
- if [ -n "$error" ]; then echo "Return code $error"; false; fi
|
||||||
Play_Against_Production:
|
Play_Against_Production:
|
||||||
stage: play
|
stage: play
|
||||||
|
retry: 1
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -l tags_prod site.yml --vault-password-file /vaultpw || error="$?"
|
- ansible-playbook -l tags_prod site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
- if [ "$error" -eq 4 ]; then echo "Some hosts were unreachable; masking error"; unset error; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user