From 61a76f95f09fa71e796f5569d88434a38b94cd3d Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 20 Mar 2019 09:02:18 -0700 Subject: [PATCH] Add retries to promote-docker-image This should make this step more robust to remote failures. Change-Id: I3f3d643ac5285027bda909ac6d55d8959a4b4f79 --- roles/promote-docker-image/tasks/main.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/promote-docker-image/tasks/main.yaml b/roles/promote-docker-image/tasks/main.yaml index 80ad09a45..9f1d030e4 100644 --- a/roles/promote-docker-image/tasks/main.yaml +++ b/roles/promote-docker-image/tasks/main.yaml @@ -15,6 +15,9 @@ username: "{{ docker_credentials.username }}" password: "{{ docker_credentials.password }}" register: jwt_token + delay: 5 + retries: 3 + until: jwt_token and jwt_token.status==200 - name: Promote image loop: "{{ docker_images }}" loop_control: