提交 94cc4870 编写于 作者: J Jesse Glick

Also verifying that initialEnvironment somehow works.

上级 e926ed31
......@@ -57,6 +57,7 @@ public class SimpleBuildWrapperTest {
}
public static class WrapperWithEnvOverride extends SimpleBuildWrapper {
@Override public void setUp(Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException {
assertNotNull(initialEnvironment.get("PATH"));
context.env("PATH+STUFF", workspace.child("bin").getRemote());
}
@TestExtension("envOverride") public static class DescriptorImpl extends BuildWrapperDescriptor {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册