Cannot try just now. But wild guess: as this is groovy, you may want to try
triple quoting (just use """ instead of one ") the outside expression. Not
sure it will work though since what you did already looks correct to me.

My 2 cents
Le 19 mai 2015 5:40 PM, "Alexander Uvizhev" <[email protected]> a écrit :

> To be clear what I try to do is:
> sh"myexecutable 'argument'"
>
>
>
> вторник, 19 мая 2015 г., 18:38:18 UTC+3 пользователь Alexander Uvizhev
> написал:
>>
>> I need to execute shell command with quoted argument like this:
>> myexecutable 'argument'
>> That's because argument can be interpreted wrong in some cases e.g.
>> "-input_value_looking_like_param".
>> Seems like 'sh' wipes all quotes in command string no matter what types
>> of escaping I tried.
>> Is there a way?
>>
>  --
> 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/e5beb569-8bdd-4058-a779-0cb86180b59f%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/e5beb569-8bdd-4058-a779-0cb86180b59f%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/CANWgJS5TCPWJw09TR160ax1iNObswmKCUkxcXQ3jpCfPqXGeXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to