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

Shell Task on Windows Slave Uses Incorrect /bin/sh

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • core
    • None

    Description

      At https://github.com/hudson/hudson/blob/master/core/src/main/java/hudson/tasks/Shell.java#L139 the Shell task attempts to detect Windows, and if so, use "sh" instead of "/bin/sh". The problem is that this detection takes place on the Master, instead of on the Slave that is actually going to run the task. If this were fixed to detect correctly, lots of people's workarounds of globally setting the shell as plain "sh" could go away.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ccutrer Cody Cutrer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: