can't send ' on groovy sh command

ε祈祈猫儿з 提交于 2019-12-13 03:09:49

问题


Hi all I have pipeline on jenkins and I try to execute some sh command

sh script: "cd /home/jenkins/workspace/automation-pipeline/ConvertedJSfiles/ && protractor conf.js -suite ${suiteTestss} --params.data='${data2}'  --params.description='${params.description}' --params.jenkins_build_number=${currentBuild.number}"

from some reason the ' erase on execute command and I can not successfully send strings with spaces as parameters on the operation example of wrong output

cd /home/jenkins/workspace/automation-pipeline/ConvertedJSfiles/ + protractor conf.js -suite User_story_xx --params.data={"User_Story_UI_xx": {"Env":"Staging","UserName":"somemail@gmail.com", "Password": "somepass","TrustedSupplier":"xxx xxx", "HowManySuppliers":16, "ErrorMessage":"xxx"}} --params.description=dsg --params.jenkins_build_number=144

来源:https://stackoverflow.com/questions/57089855/cant-send-on-groovy-sh-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!