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() |
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.
|
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 © 2017. All rights reserved.