From b569e18c43012889c9fae635583dfcf394c5a764 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 26 Sep 2021 15:59:31 -0500 Subject: [PATCH] Add retry args to prevent one-off failures in the future --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 611fc49..bc28e2b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,6 +43,7 @@ Lint: Test: stage: test + retry: 1 interruptible: yes except: - pipelines @@ -53,6 +54,7 @@ Test: Play_Against_Pis: stage: play + retry: 1 script: - 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 @@ -65,6 +67,7 @@ Play_Against_Desktops: - if [ -n "$error" ]; then echo "Return code $error"; false; fi Play_Against_Production: stage: play + retry: 1 script: - 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