Skip to content

Commit

Permalink
Merge pull request #219 from jglick/createSpecialEnvSlave
Browse files Browse the repository at this point in the history
Analogue of JTH change for `createSpecialEnvSlave`
  • Loading branch information
jglick authored Jul 22, 2022
2 parents d69c814 + dc69b65 commit 3f4dda6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ private static class UpcaseFilter extends ConsoleLogFilter implements Serializab
* @see <a href="https://github.com/jenkinsci/jenkins/pull/1553/files#r23784822">explanation in core PR 1553</a>
*/
public static Slave createSpecialEnvSlave(JenkinsRule rule, String nodeName, @CheckForNull String labels, Map<String,String> env) throws Exception {
@SuppressWarnings("deprecation") // keep consistency with original signature rather than force the caller to pass in a TemporaryFolder rule
File remoteFS = rule.createTmpDir();
File remoteFS = new File(rule.jenkins.getRootDir(), "agent-work-dirs/" + nodeName);
SpecialEnvSlave slave = new SpecialEnvSlave(remoteFS, rule.createComputerLauncher(/* yes null */null), nodeName, labels != null ? labels : "", env);
rule.jenkins.addNode(slave);
return slave;
Expand Down

0 comments on commit 3f4dda6

Please sign in to comment.