From bd86385e0d6178571f29f240d8e3fd16aac26dee Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Thu, 12 Aug 2021 18:04:39 +0200 Subject: [PATCH] Retry prometheus test 10 times --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99420c7fe..da8898a26 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -847,7 +847,7 @@ kube-prometheus-stack-alerts: - *debug_information - export BASIC_AUTH_PW=$(python3 -m openappstack $HOSTNAME secrets | grep oas-prometheus-basic-auth | cut -d'=' -f2) - cd test/ - - pytest -s -m 'prometheus' --connection=ansible --ansible-inventory=${CLUSTER_DIR}/inventory.yml --hosts='ansible://*' + - bash ../.gitlab/ci_scripts/retry_cmd_until_success.sh 10 10 pytest -s -m 'prometheus' --connection=ansible --ansible-inventory=${CLUSTER_DIR}/inventory.yml --hosts='ansible://*' extends: - .ssh_setup - .kube_prometheus_stack_rules -- GitLab