public interface IBaseCommandData
| Modifier and Type | Method and Description |
|---|---|
CommandState |
getCommandState()
Get the command state for the associated completed command.
|
hudson.EnvVars |
getEnvVars()
To get the environment variable bindings, this method should be called in prefer to
getJobContext().envVars(). |
JobContext |
getJobContext() |
void |
logError(Exception ex) |
void |
logError(String message) |
void |
logError(String prefix,
Exception ex) |
void |
logStatus(String status) |
void |
setCommandState(CommandState state)
Set the command state for the associated running command.
|
void logError(String message)
void logStatus(String status)
void logError(Exception ex)
void setCommandState(CommandState state)
state - the result command state.CommandState getCommandState()
JobContext getJobContext()
hudson.EnvVars getEnvVars()
getJobContext().envVars(). In the pipeline environment, the environment variables returned from
getJobContext().envVars() is not complete. The default implementation of this method in
BaseCommandContext handles this.Copyright © 2016–2017. All rights reserved.