Package jenkins.cli.listeners
Class CLIContext
java.lang.Object
jenkins.cli.listeners.CLIContext
Holds information of a command execution. Same instance is used to all
CLIListener
invocations.
Use correlationId
in order to group related events to the same command.- Since:
- TODO
-
Constructor Details
-
Method Details
-
getCorrelationId
- Returns:
- Correlate this command event to other, related command events.
-
getCommand
- Returns:
- Command being executed.
-
getArgs
- Returns:
- Arguments passed to the command.
-
getAuth
@CheckForNull public org.springframework.security.core.Authentication getAuth()- Returns:
- Authenticated user performing the execution.
-