Class EphemeralUsernamePasswordGlobalVariable
java.lang.Object
org.jenkinsci.plugins.workflow.cps.GlobalVariable
io.jenkins.plugins.ephemeral_credentials.EphemeralUsernamePasswordGlobalVariable
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class EphemeralUsernamePasswordGlobalVariable
extends org.jenkinsci.plugins.workflow.cps.GlobalVariable
Registers ephemeralUsernamePassword(id: ..., description: ...) as
a global factory function, usable inside a withEphemeralCredentials
spec list - the same DSL ergonomics as usernamePassword(...) inside
withCredentials, just producing an EphemeralUsernamePassword
instead of binding env vars directly.
Unlike WithEphemeralCredentials, this never invokes a pipeline
step itself - it just builds a plain data object - so a precompiled Java
Closure is fine; no CPS transformation is needed here.
- 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
-
EphemeralUsernamePasswordGlobalVariable
public EphemeralUsernamePasswordGlobalVariable()
-
-
Method Details
-
getName
- Specified by:
getNamein classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-
getValue
- Specified by:
getValuein classorg.jenkinsci.plugins.workflow.cps.GlobalVariable
-