• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • slave-setup-plugin
    • None
    • Windows

      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()) {

          [JENKINS-14164] slave-setup tries to execute empty script

          j_v created issue -
          Frederik Fromm made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Frederik Fromm [ ffromm ]

          fixed with version 1.6

          Frederik Fromm added a comment - fixed with version 1.6
          Frederik Fromm made changes -
          Fix Version/s New: current [ 10162 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 144795 ] New: JNJira + In-Review [ 191186 ]

            ffromm Frederik Fromm
            j_v j_v
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: