Skip to content

Commit

Permalink
Merge pull request #243 from sunnyqeen/Fix-JENKINS-33708
Browse files Browse the repository at this point in the history
[JENKINS-33708] Do not call `nohup` for `sh` steps running on Windows
  • Loading branch information
jglick authored Nov 22, 2024
2 parents 09f6e98 + 8b0af52 commit 299a560
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ private List<String> scriptLauncherCmd(ShellController c, FilePath ws, @CheckFor

cmdString = cmdString.replace("$", "$$"); // escape against EnvVars jobEnv in LocalLauncher.launch
List<String> cmd = new ArrayList<>();
if (os != OsType.DARWIN) { // JENKINS-25848
if (os != OsType.DARWIN && os != OsType.WINDOWS) { // JENKINS-25848 JENKINS-33708

Check warning on line 266 in src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 266 is only partially covered, 2 branches are missing
cmd.add("nohup");
}
if (LAUNCH_DIAGNOSTICS) {
Expand Down

0 comments on commit 299a560

Please sign in to comment.