Class EphemeralCredentialsFindGlobalVariable

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

@Extension public class EphemeralCredentialsFindGlobalVariable extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Registers ephemeralCredentialsFind(id) as a global step (no @Library import needed) - returns the Credentials cached under id for the current run, or null if nothing is cached under that ID. The pipeline-facing equivalent of EphemeralCredentialsAccessor.find(java.lang.String).
See Also:
  • Constructor Details

    • EphemeralCredentialsFindGlobalVariable

      public EphemeralCredentialsFindGlobalVariable()
  • 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