Class EphemeralCredentialsHasGlobalVariable

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

@Extension public class EphemeralCredentialsHasGlobalVariable extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Registers ephemeralCredentialsHas(id) as a global step (no @Library import needed) - returns whether a credential is cached under id for the current run. The pipeline-facing equivalent of EphemeralCredentialsAccessor.has(java.lang.String).
See Also:
  • Constructor Details

    • EphemeralCredentialsHasGlobalVariable

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