diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99420c7fe8b3043160c4cbc2f38bbe2d2e6b4d92..da8898a26544d84a698f363509f38e9537b699fb 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