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.