Class EphemeralSSHUserPrivateKeyGlobalVariable

java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
io.jenkins.plugins.ephemeral_credentials.EphemeralSSHUserPrivateKeyGlobalVariable
All Implemented Interfaces:
ExtensionPoint

@Extension public class EphemeralSSHUserPrivateKeyGlobalVariable extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Registers ephemeralSSHUserPrivateKey(id: ..., description: ...) - see EphemeralUsernamePasswordGlobalVariable for the general shape. If the optional "SSH Credentials" plugin isn't installed, EphemeralSSHUserPrivateKey's constructor throws a clear IllegalStateException that surfaces as a normal pipeline failure - no try/catch needed here.
See Also:
  • Constructor Details

    • EphemeralSSHUserPrivateKeyGlobalVariable

      public EphemeralSSHUserPrivateKeyGlobalVariable()
  • Method Details

    • getName

      @NonNull public String getName()
      Specified by:
      getName in class org.jenkinsci.plugins.workflow.cps.GlobalVariable
    • getValue

      @NonNull public Object getValue(@NonNull org.jenkinsci.plugins.workflow.cps.CpsScript script)
      Specified by:
      getValue in class org.jenkinsci.plugins.workflow.cps.GlobalVariable