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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Specify an environment variable override to apply to processes launched within the block.getEnv()
void
setDisposer
(SimpleBuildWrapper.Disposer disposer) Specify an action to take when the block ends.
-
Constructor Details
-
Context
Deprecated.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
-
env
Specify an environment variable override to apply to processes launched within the block. If unspecified, environment variables will be inherited unmodified.- Parameters:
key
- handles the specialPATH+SOMETHING
syntax as inEnvVars.override(java.lang.String, java.lang.String)
-
getDisposer
-
getEnv
-
setDisposer
Specify 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.