Skip to content

Commit

Permalink
archive native libs
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia committed Nov 6, 2023
1 parent e730d4f commit 317444d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 317444d

Please sign in to comment.