From f9cbc65b84d37a471da7aafee31ac3257f8e4de7 Mon Sep 17 00:00:00 2001 From: Lan Xia Date: Mon, 6 Nov 2023 09:45:23 -0500 Subject: [PATCH] archive native libs (#4859) Signed-off-by: Lan Xia --- buildenv/jenkins/JenkinsfileBase | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index b91f9b2113..9a5ddaf113 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -855,6 +855,18 @@ def post(output_name) { if (env.BUILD_LIST.startsWith('external')) { archiveFile("**/Dockerfile.*", true) } + + if (params.ARCHIVE_TEST_RESULTS && !env.JDK_VERSION.contains(',') && env.BUILD_LIST.contains('jck')) { + def natives_tar_name = "natives${suffix}" + def natives_dir = "${WORKSPACE}/../../jck_root/JCK${env.JDK_VERSION}-unzipped/natives" + if (tar_cmd.startsWith('tar')) { + sh "${tar_cmd} - ${pax_opt} ${natives_dir} ${tar_cmd_suffix} > ${natives_tar_name}" + } else { + sh "${tar_cmd} ${natives_tar_name} ${pax_opt} ${natives_dir} ${tar_cmd_suffix}" + } + archiveFile(natives_tar_name, false) + } + } if (params.CODE_COVERAGE) {