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

Add support for managed .bat scripts for Windows

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      For Windows platforms, even if I specify a "custom script", the plugin attempts to execute 'sh' with a path to my .bat file, which fails like so:

      java.io.IOException: Cannot run program "sh" (in directory "C:\Program Files (x86)\Jenkins\jobs\echo_test\workspace"): CreateProcess error=2, The system cannot find the file specified
      

      If the plugin simply added another category for Windows Batch scripts, the plugin could instead execute "cmd /c call <path/to/file.bat>".

        Attachments

          Activity

          garen Garen Parham created issue -
          domi Dominik Bartholdi made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 142731 ] JNJira + In-Review [ 190242 ]

            People

            Assignee:
            domi Dominik Bartholdi
            Reporter:
            garen Garen Parham
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: