mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
prefer better static typing
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15710 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
5baac35748
commit
0c80771feb
5 files changed
+17
-12
No files matched your search
@@ -27,6 +27,7 @@ import hudson.CloseProofOutputStream;
|
||||
import hudson.FilePath;
|
||||
import hudson.Functions;
|
||||
import hudson.WebAppMain;
|
||||
import hudson.EnvVars;
|
||||
import hudson.Launcher.LocalLauncher;
|
||||
import hudson.matrix.MatrixProject;
|
||||
import hudson.maven.MavenModuleSet;
|
||||
@@ -389,7 +390,7 @@ public abstract class HudsonTestCase extends TestCase {
|
||||
/**
|
||||
* Creates a slave with certain additional environment variables
|
||||
*/
|
||||
public DumbSlave createSlave(Label l, Map<String,String> env) throws Exception {
|
||||
public DumbSlave createSlave(Label l, EnvVars env) throws Exception {
|
||||
CommandLauncher launcher = new CommandLauncher(
|
||||
System.getProperty("java.home") + "/bin/java -jar \"" +
|
||||
new File(hudson.getJnlpJars("slave.jar").getURL().toURI()).getAbsolutePath() + "\"", env);
|
||||
|
||||
Reference in new issue
Block a user