Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: powershell
Created: 27/May/14 12:54 PM
Description:

If the PowerShell plugin is used in a build job and the plugin calls a PS1 PowerShell script the job status is always success regardless of whether the script executed correctly as the reported status is just whether it was possible to execute the script or not.

It should be possible to call out to a PowerShell script and have the status reported correctly, even if this needs to be a configuration option to the plugin (or a variant to the plugin that will only execute scripts).

There is a workaround which involves using the Windows batch plugin and doing something like

powershell.exe "& {build_script.ps1; exit $lastexitcode }"

but this is a bit unwieldy.

Project: Jenkins
Priority: Minor Minor
Reporter: Mark Syms
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to