Browse Source

Add retries to vault access in init scripts

Alpar Torok 6 years ago
parent
commit
5e570a5d6c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .ci/init.gradle

+ 2 - 0
.ci/init.gradle

@@ -23,6 +23,7 @@ final String vaultToken =  new Vault(
             .engineVersion(1)
             .build()
     )
+    .withRetries(5, 1000)
     .auth()
     .loginByAppRole("approle", System.env.VAULT_ROLE_ID, System.env.VAULT_SECRET_ID)
     .getAuthClientToken();
@@ -34,6 +35,7 @@ final Vault vault = new Vault(
         .token(vaultToken)
         .build()
 )
+        .withRetries(5, 1000)
 
 final Map<String,String> artifactoryCredentials = vault.logical()
         .read("secret/elasticsearch-ci/artifactory.elstc.co")