@@ -179,6 +179,7 @@ def setupEnv() {
179179
180180def setupParallelEnv () {
181181 stage(' setupParallelEnv' ) {
182+ int NUM_LIST = -1
182183 def maxChildJobNum = 25
183184 int childJobNum = 1
184185 def UPSTREAM_TEST_JOB_NAME = " "
@@ -229,7 +230,6 @@ def setupParallelEnv() {
229230 if (params. TRSS_URL ) {
230231 PARALLEL_OPTIONS + = " TRSS_URL=${ params.TRSS_URL} "
231232 }
232- int NUM_LIST = -1
233233 int MAX_NUM_MACHINES = Math . min(20 , getMachineLimit());
234234 if (params. NUM_MACHINES ) {
235235 int numOfMachines = getNumMachines()
@@ -298,7 +298,7 @@ def setupParallelEnv() {
298298 childParams << string(name : param. key, value : " " )
299299 } else if (param. key == " TEST_TIME" ) {
300300 childParams << string(name : param. key, value : " " )
301- }else {
301+ } else {
302302 def value = param. value. toString()
303303 if (value == " true" || value == " false" ) {
304304 childParams << booleanParam(name : param. key, value : value. toBoolean())
@@ -322,7 +322,6 @@ def setupParallelEnv() {
322322 return NUM_LIST
323323 // return to top level pipeline file in order to exit node block before running tests in parallel
324324 }
325-
326325}
327326
328327// Returns NUM_LIST from parallelList.mk.
@@ -514,7 +513,7 @@ def setup() {
514513 VENDOR_TEST_BRANCHES = (params. VENDOR_TEST_BRANCHES ) ? " --vendor_branches \" ${ params.VENDOR_TEST_BRANCHES} \" " : " "
515514 VENDOR_TEST_DIRS = (params. VENDOR_TEST_DIRS ) ? " --vendor_dirs \" ${ params.VENDOR_TEST_DIRS} \" " : " "
516515 VENDOR_TEST_SHAS = (params. VENDOR_TEST_SHAS ) ? " --vendor_shas \" ${ params.VENDOR_TEST_SHAS} \" " : " "
517- env. IS_SVT_TESTREPO = (params. VENDOR_TEST_REPOS && params. VENDOR_TEST_REPOS . contains(' SVTTestRepo' )) ? true : false
516+ env. IS_SVT_TESTREPO = (params. VENDOR_TEST_REPOS && params. VENDOR_TEST_REPOS . contains(' SVTTestRepo' )) ? true : false
518517 echo " IS_SVT_TESTREPO is set to ${ env.IS_SVT_TESTREPO} "
519518
520519 // handle three cases (true/false/null) in params.TEST_IMAGES_REQUIRED and params.DEBUG_IMAGES_REQUIRED
@@ -565,7 +564,7 @@ def setup_jck_interactives() {
565564 jdkDir = " ${ jdkDir} _64"
566565 }
567566 } else {
568- jdkDir = sh(script : " tar -tf `pwd`/jdkbinary/${ tarBall} | head -1" , returnStdout : true ). trim(). replaceFirst(" .\$ " ," " )
567+ jdkDir = sh(script : " tar -tf `pwd`/jdkbinary/${ tarBall} | head -1" , returnStdout : true ). trim(). replaceFirst(" .\$ " ," " )
569568 }
570569 def jckRunDir = " ${ targetDir} /${ jdkDir} "
571570 def jckRunJDKExists = sh(script : """
@@ -765,7 +764,7 @@ def runTest( ) {
765764 // Add an additional 10 second timeout due to issue: https://github.com/adoptium/temurin-build/issues/2368#issuecomment-756683888
766765 wrap([$class : ' Xvfb' , autoDisplayName : true , timeout :20 ]) {
767766 def DISPLAY = sh (
768- script : ' ps -f | grep \' [X]vfb\' | awk \' {print \$ 9}\' ' ,
767+ script : ' ps -f | grep \' [X]vfb\' | awk \' {print \$ 9}\' ' ,
769768 returnStdout : true
770769 ). trim()
771770 env. DISPLAY = " ${ DISPLAY} "
@@ -964,7 +963,7 @@ def post(output_name) {
964963}
965964
966965def testBuild () {
967- TIME_LIMIT = params. TIME_LIMIT ? params. TIME_LIMIT . toInteger() : 10
966+ TIME_LIMIT = params. TIME_LIMIT ? params. TIME_LIMIT . toInteger() : 10
968967 timeout(time : TIME_LIMIT , unit : ' HOURS' ) {
969968 try {
970969 addJobDescription()
@@ -1295,7 +1294,7 @@ def addFailedTestsGrinderLink(paths=""){
12951294 if (jckDevtoolsFailedTestCaseList) {
12961295 customizedTestCases[' jckdevtools' ] = " ${ jckDevtoolsFailedTestCaseList} "
12971296 }
1298-
1297+
12991298 if (customizedTestCases. size() == 1 ) {
13001299 def testCases= customizedTestCases. values(). first()
13011300 def customTarget= customizedTestCases. keySet(). first()
0 commit comments