@@ -146,15 +146,12 @@ class Build {
146146 jobParams. put(' GROUPS' , ' functional' )
147147 jobParams. put(' TEST_JOB_NAME' , " ${ env.JOB_NAME} _SmokeTests" )
148148 jobParams. put(' BUILD_LIST' , ' functional/buildAndPackage' )
149- def useAdoptShellScripts = Boolean . valueOf(buildConfig. USE_ADOPT_SHELL_SCRIPTS )
150149 def vendorTestRepos = ((String )ADOPT_DEFAULTS_JSON [' repository' ][' build_url' ]) - (' .git' )
151150 def vendorTestDirs = ADOPT_DEFAULTS_JSON [' repository' ][' test_dirs' ]
152- if (! useAdoptShellScripts) {
153- vendorTestRepos = ((String )DEFAULTS_JSON [' repository' ][' build_url' ]) - (' .git' )
154- vendorTestDirs = DEFAULTS_JSON [' repository' ][' test_dirs' ]
155- }
151+ def vendorTestBranches = ADOPT_DEFAULTS_JSON [' repository' ][' build_branch' ]
156152 jobParams. put(' VENDOR_TEST_REPOS' , vendorTestRepos)
157153 jobParams. put(' VENDOR_TEST_DIRS' , vendorTestDirs)
154+ jobParams. put(' VENDOR_TEST_BRANCHES' , vendorTestBranches)
158155 return jobParams
159156 }
160157
@@ -299,6 +296,8 @@ class Build {
299296 def additionalTestLabel = buildConfig. ADDITIONAL_TEST_LABEL
300297 def useAdoptShellScripts = Boolean . valueOf(buildConfig. USE_ADOPT_SHELL_SCRIPTS )
301298 def vendorTestBranches = useAdoptShellScripts ? ADOPT_DEFAULTS_JSON [' repository' ][' build_branch' ] : DEFAULTS_JSON [' repository' ][' build_branch' ]
299+ def vendorTestRepos = useAdoptShellScripts ? ADOPT_DEFAULTS_JSON [' repository' ][' build_url' ] : DEFAULTS_JSON [' repository' ][' build_url' ]
300+ vendorTestRepos = vendorTestRepos - (' .git' )
302301
303302 // Use BUILD_REF override if specified
304303 vendorTestBranches = buildConfig. BUILD_REF ?: vendorTestBranches
@@ -330,6 +329,7 @@ class Build {
330329 context. booleanParam(name : ' KEEP_REPORTDIR' , value : buildConfig. KEEP_TEST_REPORTDIR ),
331330 context. string(name : ' ACTIVE_NODE_TIMEOUT' , value : " ${ buildConfig.ACTIVE_NODE_TIMEOUT} " ),
332331 context. booleanParam(name : ' DYNAMIC_COMPILE' , value : true ),
332+ context. string(name : ' VENDOR_TEST_REPOS' , value : vendorTestRepos),
333333 context. string(name : ' VENDOR_TEST_BRANCHES' , value : vendorTestBranches),
334334 context. string(name : ' TIME_LIMIT' , value : ' 1' )
335335 ]
@@ -584,7 +584,7 @@ class Build {
584584
585585 return remoteTargets
586586 }
587-
587+
588588 /*
589589 We use this function at the end of a build to parse a java version string and create a VersionInfo object for deployment in the metadata objects.
590590 E.g. 11.0.9+10-202010192351 would be one example of a matched string.
0 commit comments