j_v created Bug JENKINS-14164
Issue Type: Bug Bug
Affects Versions: current
Assignee: Kohsuke Kawaguchi
Components: slave-setup
Created: 20/Jun/12 4:26 PM
Description:

Since slave-setup plugin has "prepare script" and "setup script after copy", it fails on windows under these circumstances:

  • Neither master nor slaves have sh shell (path or jenkins configured).
  • "prepare script" and "setup script after copy" are empty.
    Plugin try to find sh in path to execute the empty script (thus fails).
    [I don't need any script execution, but just a directory copy]

Fix proposal:
Don't try to execute empty scripts:
125c125
< if (cmdLine != null) {

> if (cmdLine != null && !cmdLine.isEmpty()) {

Environment: Windows
Project: Jenkins
Priority: Major Major
Reporter: j_v
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to