Package jenkins.tasks
Class SimpleBuildWrapper.Context
java.lang.Object
jenkins.tasks.SimpleBuildWrapper.Context
- Enclosing class:
- SimpleBuildWrapper
Parameter passed to 
SimpleBuildWrapper.setUp(jenkins.tasks.SimpleBuildWrapper.Context, hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener, hudson.EnvVars) to allow an implementation to specify its behavior after the initial setup.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSpecify an environment variable override to apply to processes launched within the block.getEnv()voidsetDisposer(SimpleBuildWrapper.Disposer disposer) Specify an action to take when the block ends.
- 
Constructor Details- 
ContextDeprecated.UseSimpleBuildWrapper.createContext()instead, so that this context can tell whether or not a disposer will require a workspace context.Creates a new context.
 
- 
- 
Method Details- 
envSpecify an environment variable override to apply to processes launched within the block. If unspecified, environment variables will be inherited unmodified.- Parameters:
- key- handles the special- PATH+SOMETHINGsyntax as in- EnvVars.override(java.lang.String, java.lang.String)
 
- 
getDisposer
- 
getEnv
- 
setDisposerSpecify an action to take when the block ends. If not specified, nothing special happens.
 
- 
SimpleBuildWrapper.createContext()instead, so that this context can tell whether or not a disposer will require a workspace context.