python script argument misinterpreted in Hudson Execute Shell step
Posted
by
chz
on Stack Overflow
See other posts from Stack Overflow
or by chz
Published on 2014-05-30T02:52:29Z
Indexed on
2014/05/30
3:26 UTC
Read the original article
Hit count: 151
When I run my python script in the shell terminal, it works
sudo myscript.py --version=22 --base=252 --hosts="{'hostA':[1],'hostB':[22]}"
But when I run in Hudson and Jenkins, using Execute Shell step, somehow, the string --hosts="{'hostA':[1],'hostB':[22]}"
is interpreted as
sudo myscript.py --version=22 --base=252 '--hosts="{'hostA':[1],'hostB':[22]}"'
How do we overcome this so that our script would run in Jenkins and Hudson ?
Thank you. Sincerely
© Stack Overflow or respective owner