public static final class SimpleBuildWrapper.Context extends Object
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 and Description |
---|
Context()
Deprecated.
Use
SimpleBuildWrapper.createContext() instead, so that this context can tell whether or
not a disposer will require a workspace context. |
Modifier and Type | Method and Description |
---|---|
void |
env(String key,
String value)
Specify an environment variable override to apply to processes launched within the block.
|
SimpleBuildWrapper.Disposer |
getDisposer() |
Map<String,String> |
getEnv() |
void |
setDisposer(SimpleBuildWrapper.Disposer disposer)
Specify an action to take when the block ends.
|
@Deprecated public Context()
SimpleBuildWrapper.createContext()
instead, so that this context can tell whether or
not a disposer will require a workspace context.public void env(String key, String value)
key
- handles the special PATH+SOMETHING
syntax as in EnvVars.override(java.lang.String, java.lang.String)
@CheckForNull public SimpleBuildWrapper.Disposer getDisposer()
public void setDisposer(@NonNull SimpleBuildWrapper.Disposer disposer)
Copyright © 2004–2021. All rights reserved.