Details
-
Bug
-
Status: Resolved (View Workflow)
-
Critical
-
Resolution: Fixed
Description
Simple hello world from workflow-plugin
node {
sh 'echo hello world'
}
fails
Running: Allocate node : Start Running on master in /Users/Shared/Jenkins/Home/jobs/workflow/workspace Running: Allocate node : Body : Start Running: Shell Script [workspace] Running shell script nohup: can't detach from console: No such file or directory Aborted by asdf Aborted by asdf Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow Finished: ABORTED
Attachments
Issue Links
- is related to
-
JENKINS-25503 Use setsid instead of nohup
-
- Resolved
-
If Apple uses modified utils, their sources are on opensource.apple.com. For nohup, it's here (newest version):
http://www.opensource.apple.com/source/shell_cmds/shell_cmds-179/nohup/nohup.c
It's an error in _vprocmgr_detach_from_console which indicates the mode of installation and running Jenkins may indeed be relevant, as I know it in the context of disconnecting a process from a user session (see e.g. explanation https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard).
When installing Jenkins via installer on a virtual machine with OS X 10.7, and installing Workflow Aggregator with dependencies, the job just stops after
10.7 is ancient, but it appears there's something wrong with using nohup this way. In fact, if I run a shell script with e.g. nohup find / -L -type l, I get: