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

SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh

      SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh:

      just before slave testW2019 gets launched ...
      executing pre-launch scripts ...
      $ sh -xe C:\Users\Jenkins\AppData\Local\Temp\jenkins4965045739906841359.sh
      The system cannot find the file specified
      ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
      java.io.IOException: CreateProcess error=2, The system cannot find the file specified

      Should be platform-aware, and only use sh on unixes/macs, and cmd on Windows'.

          [JENKINS-69137] SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh

          Victor Dulepov created issue -
          Victor Dulepov made changes -
          Description Original: SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh:
          {{just before slave testW2019 gets launched ...
          executing pre-launch scripts ...
          $ sh -xe C:\Users\Jenkins\AppData\Local\Temp\jenkins4965045739906841359.sh
          The system cannot find the file specified
          ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
          java.io.IOException: CreateProcess error=2, The system cannot find the file specified}}

          Should be platform-aware, and only use {{sh}} on unixes/macs, and {{cmd}} on Windows'.
          New: {{SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh:}}


          {{just before slave testW2019 gets launched ...}}
          {{executing pre-launch scripts ...}}
          {{$ sh -xe C:\Users\Jenkins\AppData\Local\Temp\jenkins4965045739906841359.sh}}
          {{The system cannot find the file specified}}
          {{ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins}}
          {{java.io.IOException: CreateProcess error=2, The system cannot find the file specified}}

          Should be platform-aware, and only use {{sh}} on unixes/macs, and {{cmd}} on Windows'.
          Victor Dulepov made changes -
          Environment Original: Windows 2019 Server New: Windows 2019 Server, Jenkins 2.346.2, Slave SetupPlugin
          Version1.10
          Victor Dulepov made changes -
          Link New: This issue is related to JENKINS-15739 [ JENKINS-15739 ]

            peppe Giuseppe Landolfi
            vicd Victor Dulepov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: