In the init scripts, I'm using Grape to get 
com.bettercloud:vault-java-driver:4.0.0 
<https://github.com/BetterCloud/vault-java-driver>. It is then used by 
creating an instance of the Vault client, such as:

def vaultConfig = new VaultConfig()
  .address(vaultUrl)
  .token(vaultToken)
  .sslConfig(new SslConfig().build())
  .build()

Integer vaultEngineVersion = 1
def vault = new Vault(vaultConfig, vaultEngineVersion)

I'd like to *persist the vault *variable shown above across various init 
scripts that will be executed after this. Is there a mechanism to write 
custom objects as state of the Jenkins (or any other) singleton?

Thanks,
Kamil

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7584eeab-a3fc-433d-8b75-b240f8042ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to