Class EnvSecretSource

java.lang.Object
io.jenkins.plugins.casc.SecretSource
io.jenkins.plugins.casc.impl.secrets.EnvSecretSource
All Implemented Interfaces:
ExtensionPoint

@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class EnvSecretSource extends SecretSource
  • Constructor Details

    • EnvSecretSource

      public EnvSecretSource()
  • Method Details

    • reveal

      public Optional<String> reveal(String secret)
      Description copied from class: SecretSource
      Reveal the plaintext value of a secret.
      Specified by:
      reveal in class SecretSource
      Parameters:
      secret - the variable reference to reveal
      Returns:
      the secret's value, or Optional.empty() if a recoverable error occurred. (An empty Optional will allow CasC to continue processing the resolver chain.)

      Recoverable errors include:

      • the secret was not found in the backing store