From 7c5e555a4015b3b60fcb1888063bb874c2655d96 Mon Sep 17 00:00:00 2001 From: Shirang Jia Date: Fri, 9 Apr 2021 18:14:14 -0700 Subject: [PATCH] Fix indentation in Jenkinsfile --- scripts/build/Jenkins/Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build/Jenkins/Jenkinsfile b/scripts/build/Jenkins/Jenkinsfile index 58cce19876..2b146da027 100644 --- a/scripts/build/Jenkins/Jenkinsfile +++ b/scripts/build/Jenkins/Jenkinsfile @@ -315,8 +315,8 @@ def PreBuildCommonSteps(Map pipelineConfig, String projectName, String pipeline, // Get python dir(ENGINE_REPOSITORY_NAME) { if(env.IS_UNIX) { - sh label: 'Getting python', - script: 'python/get_python.sh' + sh label: 'Getting python', + script: 'python/get_python.sh' } else { bat label: 'Getting python', script: 'python/get_python.bat' @@ -343,7 +343,7 @@ def Build(Map options, String platform, String type, String workspace) { sh label: "Running ${platform} ${type}", script: "${options.PYTHON_DIR}/python.sh -u ${command}" } else { - bat label: "Running ${platform} ${type}", + bat label: "Running ${platform} ${type}", script: "${options.PYTHON_DIR}/python.cmd -u ${command}".replace('/','\\') } } @@ -362,7 +362,7 @@ def TestMetrics(Map options, String workspace, String branchName, String repoNam withCredentials([usernamePassword(credentialsId: "${env.SERVICE_USER}", passwordVariable: 'apitoken', usernameVariable: 'username')]) { def command = "${options.PYTHON_DIR}/python.cmd -u mars/scripts/python/ctest_test_metric_scraper.py -e jenkins.creds.user ${username} -e jenkins.creds.pass ${apitoken} ${cmakeBuildDir} ${branchName} %BUILD_NUMBER% AR ${configuration} ${repoName} " bat label: "Publishing ${buildJobName} Test Metrics", - script: command + script: command } } }