简体   繁体   中英

Jenkins execute shell is escaping — characters

I am trying to run following command from executable shell task:

rhc configure-app -a TestProject20140324192518 -–deployment-type binary

But when I run the jenkins job, it converts the command to:

rhc configure-app -a TestProject20140324192518 $'-\342\200\223deployment-type' binary

Do I need to escape -- here ?

If I put above command in .sh, it runs just fine.

That doesn't look like a hyphen - did you copy the command from somewhere?

Instead of:

rhc configure-app -a TestProject20140324192518 -–deployment-type binary

Try:

rhc configure-app -a TestProject20140324192518 --deployment-type binary

Note that the character immediately before "deployment-type" has been changed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM