Class CliCreateContext
java.lang.Object
io.jenkins.plugins.batchcontrol.security.CliCreateContext
- All Implemented Interfaces:
ExtensionPoint,CLIListener
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class CliCreateContext
extends Object
implements CLIListener
D-40: remembers, on the thread that runs it, the target of a
create-job or
copy-job CLI command, for NewItemName. CLICommand.getCurrent() is only
set by the remote CLI transports, while CLICommand.main always notifies
CLIListeners on the executing thread just before run().
S-13: the captured target is bound to the command's user and target folder, so a value left behind on a pooled thread (if clean-up never ran) cannot name an item for another user or another folder.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonCompleted(CLIContext context, int exitCode) voidonExecution(CLIContext context) voidonThrowable(CLIContext context, Throwable t)
-
Constructor Details
-
CliCreateContext
public CliCreateContext()
-
-
Method Details
-
onExecution
- Specified by:
onExecutionin interfaceCLIListener
-
onCompleted
- Specified by:
onCompletedin interfaceCLIListener
-
onThrowable
- Specified by:
onThrowablein interfaceCLIListener
-