diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index 3b03474582..b0ca1e0dc3 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -868,6 +868,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) {