diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c05da97636b1b075443cafae555b02376eb5433c..d195944fe0711b21e5a420f4f68c40acb6e2981e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -109,7 +109,7 @@ test:
     - echo NEW_INSTANCE_ID=$NEW_INSTANCE_ID | tee -a instance.env
     - openstack server add floating ip $NEW_INSTANCE_ID $TEST_IP
     - >
-      curl https://rc.uab.edu/Shibboleth.sso/Metadata --resolve rc.uab.edu:443:$TEST_IP -kf
+      curl --retry 6 --retry-delay 20 --retry-connrefused https://rc.uab.edu/Shibboleth.sso/Metadata --resolve rc.uab.edu:443:$TEST_IP -kf
       || (openstack server delete $NEW_INSTANCE_ID && openstack image delete $BUILT_OOD_IMAGE_ID && false)
     - openstack server remove floating ip $NEW_INSTANCE_ID $TEST_IP
   artifacts: