-
Improvement
-
Resolution: Fixed
-
Major
-
PowerShell Plugin 1.2
The current version of the PowerShell Plugin hosted as a Jenkins addon does not ByPass the local execution policy of the machine.
Code from the module:
// PowerShell.java protected String getFileExtension() { return ".ps1"; } protected String[] buildCommandLine(FilePath script) { return new String[] { "powershell.exe","& \'"+script.getRemote()+"\'"}; } protected String getContents() { return command; }
This has been fixed in the GitHub Repo (https://github.com/jenkinsci/powershell-plugin/blob/master/src/main/java/hudson/plugins/powershell/PowerShell.java#L27), but needs to be pushed into the hosted addons section.