GoCD task plugin to run PowerShell scripts
GoCD Agents running this task must either run on Windows (with Windows PowerShell) or on an operating system with PowerShell 7+ installed. The PowerShell.exe and/or pwsh executables MUST be on the system path.
PowerShell is supported on Windows, macOS, and a variety of Linux platforms. For more information, see Installing PowerShell.
See also: PowerShell/PowerShell README.md.
Error(s): [Validation failed.]. Please correct and resubmit.
This error appears when you configure the PowerShell Task in Command mode. File Mode is not affected. The PowerShell Command script that you've supplied likely has a comment in it somewhere. Something about the hashtag (#) character causes it to fail to validate.
This does not seem to be an issue with the plugin, but rather GoCD Server. See gocd/gocd GoFileConfigDataSource.java#L476-L505
Use File mode for the task, or remove all comments from the PowerShell Command.
