Skip to content

Commit ac4bf89

Browse files
committed
Add retries to vault access in init scripts
1 parent 7c2a103 commit ac4bf89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.ci/init.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ final String vaultToken = new Vault(
2323
.engineVersion(1)
2424
.build()
2525
)
26+
.withRetries(5, 1000)
2627
.auth()
2728
.loginByAppRole("approle", System.env.VAULT_ROLE_ID, System.env.VAULT_SECRET_ID)
2829
.getAuthClientToken();
@@ -34,6 +35,7 @@ final Vault vault = new Vault(
3435
.token(vaultToken)
3536
.build()
3637
)
38+
.withRetries(5, 1000)
3739

3840
final Map<String,String> artifactoryCredentials = vault.logical()
3941
.read("secret/elasticsearch-ci/artifactory.elstc.co")

0 commit comments

Comments
 (0)