[ https://issues.jenkins-ci.org/browse/JENKINS-12365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159127#comment-159127 ]
Jeremy Ramsey commented on JENKINS-12365: ----------------------------------------- The same option for groovy files would be nice. > Add support for managed .bat scripts for Windows > ------------------------------------------------ > > Key: JENKINS-12365 > URL: https://issues.jenkins-ci.org/browse/JENKINS-12365 > Project: Jenkins > Issue Type: New Feature > Components: managed-scripts > Reporter: Garen Parham > Assignee: domi > > 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: > {noformat} > 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 > {noformat} > If the plugin simply added another category for Windows Batch scripts, the > plugin could instead execute "cmd /c call <path/to/file.bat>". -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira