diff --git a/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java b/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java index 2ece052b..011c5b43 100644 --- a/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java +++ b/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java @@ -263,7 +263,7 @@ private List scriptLauncherCmd(ShellController c, FilePath ws, @CheckFor cmdString = cmdString.replace("$", "$$"); // escape against EnvVars jobEnv in LocalLauncher.launch List cmd = new ArrayList<>(); - if (os != OsType.DARWIN) { // JENKINS-25848 + if (os != OsType.DARWIN && os != OsType.WINDOWS) { // JENKINS-25848 JENKINS-33708 cmd.add("nohup"); } if (LAUNCH_DIAGNOSTICS) {