Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-33708] Do not call nohup for sh steps running on Windows #243

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

sunnyqeen
Copy link
Contributor

@sunnyqeen sunnyqeen requested a review from a team as a code owner November 22, 2024 13:10
@jglick jglick changed the title do not call nohup on Windows shell that fix JENKINS-33708 [JENKINS-33708] Do not call nohup for sh steps running on Windows Nov 22, 2024
@jglick jglick added the bug label Nov 22, 2024
@jglick jglick merged commit 299a560 into jenkinsci:master Nov 22, 2024
17 checks passed
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 though given

public enum OsType {
DARWIN("darwin"),
LINUX("linux"),
WINDOWS("win"),
FREEBSD("freebsd"),
ZOS("zos"),
UNKNOWN("unknown");
perhaps this should just be os == OsType.LINUX.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

freebsd could also have nohup.
or would better add pre-step to check if nohup exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants