Jenkins,Jenkins文件管道中的转义空格字符

Jenkins,Jenkins文件管道中的转义空格字符,jenkins,continuous-integration,jenkins-pipeline,jenkins-groovy,jenkins-job-dsl,Jenkins,Continuous Integration,Jenkins Pipeline,Jenkins Groovy,Jenkins Job Dsl,我的詹金斯计划还有下一阶段 stage('Test') { steps { bat "${KATALON} -noSplash -runMode=console -retry=0 -projectPath=${PRJ} -testSuitePath="Test Suites/IPM - REF" -executionProfile='CD2' -browserType='Web Service'" } stage('Test') {

我的詹金斯计划还有下一阶段

stage('Test') {
        steps {
           bat "${KATALON} -noSplash -runMode=console -retry=0 -projectPath=${PRJ} -testSuitePath="Test Suites/IPM - REF" -executionProfile='CD2' -browserType='Web Service'"

        }
stage('Test') {
        steps {
           bat """${KATALON} -noSplash -runMode=console -retry=0 -projectPath=${PRJ} -testSuitePath="Test Suites/IPM - REF" -executionProfile='CD2' -browserType='Web Service'"""

        }
当我运行这个管道时,它会给我一个错误:找不到测试套件“Test”

在这种情况下,如何转义空格字符

试试三重引号:


这样我的命令就成功了。感谢所有评论

你需要逃离内心,而不是空间,你用反斜杠以正常的方式来做。谢谢你的回答。我不明白。您能在命令示例中显示它吗?谢谢您的回答。现在是抱怨>>-browserType='webservice'。詹金斯再次将其视为独立的网络。已尝试将双引号更改为单引号,但没有结果。
> bat """${KATALON} -noSplash -runMode=console -retry=0 -projectPath=${PRJ} -testSuitePath="Test Suites/IPM - REF" -executionProfile="CD2" -browserType=\"Web Service\""""