无法在Groovy sh命令上发送'

时间:2019-07-18 08:07:11

标签: jenkins groovy sh

大家好,我在jenkins上有管道,我尝试执行一些sh命令

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}"

由于某种原因,'执行时擦除命令,并且我无法成功发送带有空格作为操作参数的字符串 错误输出示例

  

cd / home / jenkins / workspace / automation-pipeline / ConvertedJSfiles /   +量角器conf.js -suite User_story_xx --params.data = {“ User_Story_UI_xx”:{“ Env”:“ Staging”,“ UserName”:“ somemail@gmail.com”,“ Password”:   “ somepass”,“受信任的供应商”:“ xxx xxx”,“ HowManySuppliers”:16,   “ ErrorMessage”:“ xxx”}} --params.description = dsg   --params.jenkins_build_number = 144

0 个答案:

没有答案