JetBrains/teamcity-hashicorp-vault-plugin

Retry revoking token in case of network problems

VladRassokhin opened this issue · 2 comments

Observed next line in build log:

Cannot revoke HashiCorp Vault token: I/O error on POST request for "https://vault.consul:8200/v1/auth/token/revoke-self": Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out

org.jetbrains.teamcity.vault.support.LifecycleAwareSessionManager#revoke should retry several times

Meanwhile TC server will also try to revoke token once build finishes

Added retry with backoff