Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26319

durable-task-plugin version 1.1 fail on windows with result "Cannot run program "nohup""

    Details

    • Similar Issues:

      Description

      when launching a task from durable-task-plugin, we received a failure message:

      java.io.IOException: Cannot run program "nohup" (in directory "D:\Jenkins\workspace\TestFrameworkWf"): CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.<init>(Proc.java:244)
      at hudson.Proc$LocalProc.<init>(Proc.java:216)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:803)
      at hudson.Launcher$ProcStarter.start(Launcher.java:381)
      at org.jenkinsci.plugins.durabletask.BourneShellScript.doLaunch(BourneShellScript.java:101)
      at org.jenkinsci.plugins.durabletask.FileMonitoringTask.launch(FileMonitoringTask.java:57)

      The bug seems identical to MacOSX reports JENKINS-25848

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          No, JENKINS-25848 was about nohup failing on Macs in some cases. Your problem is that nohup does not exist at all—because you are running on Windows, so there is no reason for it to exist. Assuming you are encountering this from within a workflow running the sh step, the fix is simply to use the bat step instead.

          Show
          jglick Jesse Glick added a comment - No, JENKINS-25848 was about nohup failing on Macs in some cases. Your problem is that nohup does not exist at all—because you are running on Windows, so there is no reason for it to exist. Assuming you are encountering this from within a workflow running the sh step, the fix is simply to use the bat step instead.

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              lo92fr Laurent ARNAL
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: