Class EphemeralCredentialsForgetGlobalVariable
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
io.jenkins.plugins.ephemeral_credentials.EphemeralCredentialsForgetGlobalVariable
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class EphemeralCredentialsForgetGlobalVariable
extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Registers
ephemeralCredentialsForget(id) as a global step (no
@Library import needed) - drops the credential cached under
id for the current run, if any, and returns whether one was
actually present. Useful for proactively purging a sensitive one-time-use
credential before the run ends, rather than waiting for EphemeralCredentialsRunListener's whole-run cleanup. The pipeline-facing
equivalent of EphemeralCredentialsAccessor.forget(java.lang.String).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
ALL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jenkinsci.plugins.workflow.cps.GlobalVariable
byName, forJob, forRun
-
Constructor Details
-
EphemeralCredentialsForgetGlobalVariable
public EphemeralCredentialsForgetGlobalVariable()
-
-
Method Details
-
getName
- Specified by:
getNamein classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-
getValue
- Specified by:
getValuein classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-