You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-8449] Shell Task on Windows Slave Uses Incorrect /bin/sh #15552
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.
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.
Activity
jenkins-infra-bot commentedon Mar 20, 2011
Raw content of original comment:
Code changed in jenkins
User: Seiji Sogabe
Path:
changelog.html
core/src/main/java/hudson/tasks/Shell.java
http://jenkins-ci.org/commit/jenkins/415a2729a54bc65c696e06d804bffd658d16b5ea
Log:
[FIXED JENKINS-8449] Use correct shell interpreter on Windows slave.
jenkins-infra-bot commentedon Mar 24, 2011
Raw content of original comment:
Integrated in
jenkins_main_trunk #620
jenkins-infra-bot commentedon Apr 22, 2011
Raw content of original comment:
Integrated in
jenkins_main_trunk #734
[FIXED JENKINS-8449] Use correct shell interpreter on Windows slave.
Kohsuke Kawaguchi : 6d8fd5450a823f0c7abe528bce6a36fd81d2ad5f
Files :
jenkins-infra-bot commentedon Sep 12, 2011
Raw content of original comment:
Code changed in jenkins
User: Seiji Sogabe
Path:
changelog.html
core/src/main/java/hudson/tasks/Shell.java
http://jenkins-ci.org/commit/jenkins/415a2729a54bc65c696e06d804bffd658d16b5ea
Log:
[FIXED JENKINS-8449] Use correct shell interpreter on Windows slave.
jenkins-infra-bot commentedon Sep 12, 2011
Raw content of original comment:
Code changed in jenkins
User: Seiji Sogabe
Path:
core/src/main/java/hudson/tasks/Shell.java
http://jenkins-ci.org/commit/jenkins/6d8fd5450a823f0c7abe528bce6a36fd81d2ad5f
Log:
[FIXED JENKINS-8449] Use correct shell interpreter on Windows slave.
jenkins-infra-bot commentedon Oct 20, 2011
Raw content of original comment:
Code changed in jenkins
User: Seiji Sogabe
Path:
core/src/main/java/hudson/tasks/Shell.java
http://jenkins-ci.org/commit/jenkins/6d8fd5450a823f0c7abe528bce6a36fd81d2ad5f
Log:
[FIXED JENKINS-8449] Use correct shell interpreter on Windows slave.