Skip to content

Commit

Permalink
pre-stage test libs on the machine for parallel case
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia authored and pshipton committed Dec 7, 2023
1 parent 51bc3c3 commit 83b4225
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,19 @@ def setupParallelEnv() {
}

try {
// Only json-simple.jar is needed for compiling TKG
timeout(time: 15, unit: 'MINUTES') {
copyArtifacts fingerprintArtifacts: true, projectName: "test.getDependency", filter: "json-simple.jar", selector: lastSuccessful(), target: 'aqa-tests/TKG/lib'
// check pre-stage test libs on the machine
// check for each lib. If lib does not exist, donwload it.
// If lib exists, SHA will be checked. Re-download if SHA does not match.
timeout(time: 20, unit: 'MINUTES') {
def customUrl = "https://ci.adoptium.net/job/test.getDependency/lastSuccessfulBuild/artifact/"
if (PLATFORM.contains("windows")) {
env.LIB_DIR = env.LIB_DIR.replaceAll("\\\\", "/")
}
sh "perl ./aqa-tests/TKG/scripts/getDependencies.pl -path ${env.LIB_DIR} -task default -customUrl ${customUrl}"
}
} catch (Exception e) {
echo 'Exception: ' + e.toString()
echo 'Cannot run copyArtifacts from test.getDependency. Skipping copyArtifacts...'
echo "Cannot pre-stage test libs from ${env.LIB_DIR} on the machine. Skipping..."
}

String PARALLEL_OPTIONS = "TEST=${TARGET}"
Expand Down

0 comments on commit 83b4225

Please sign in to comment.