The powershell plugin would need to add support for pipeline. You could
file a request in JIRA for it.

On Mon, Jun 27, 2016, 01:21 Yogesh Bhole <[email protected]> wrote:

> How to execute PowerShell command/scripts directly from Jenkins 2.0
> pipeline groovy script. Right now I am executing it from bat command. Using
> it I have to think lot about single/double quotes when using paramaters in
> statement.
>
> bat 'powershell "Stop-Service -Name Windows.* -Verbose"'
>
>
> It could be nice if there is something like
>
> powershell "Stop-Service -Name Windows.* -Verbose"
>
> -------------------------------------------
> Jekins 2.10 on Windows 10
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b7578d5b-d17e-4749-ae13-565ca7b8d3af%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/b7578d5b-d17e-4749-ae13-565ca7b8d3af%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeKmXUw0%3DUEBF5TUmin4TL0rcmG5Af1kTpWmXigSVvPMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to