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

PowerShell Plugin Should bypass system execution policy

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • powershell-plugin
    • 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.

            Unassigned Unassigned
            hodge Matthew Hodgkins
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: