Escape character in Jenkins for test metrics

Signed-off-by: evanchia <evanchia@amazon.com>
This commit is contained in:
evanchia
2021-08-05 10:19:15 -07:00
parent 34afed6792
commit 574bef0cd8
+1 -1
View File
@@ -370,7 +370,7 @@ def TestMetrics(Map pipelineConfig, String workspace, String branchName, String
def command = "${pipelineConfig.PYTHON_DIR}/python.cmd -u mars/scripts/python/ctest_test_metric_scraper.py " +
'-e jenkins.creds.user %username% -e jenkins.creds.pass %apitoken% ' +
"-e jenkins.base_url ${env.JENKINS_URL} " +
"${cmakeBuildDir} ${branchName} %BUILD_NUMBER% AR ${configuration} ${repoName} --url ${env.BUILD_URL}"
"${cmakeBuildDir} ${branchName} %BUILD_NUMBER% AR ${configuration} ${repoName} --url ${env.BUILD_URL}.replace('%','%%')"
bat label: "Publishing ${buildJobName} Test Metrics",
script: command
}