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 3, 2023
1 parent e730d4f commit e8a154e
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.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 e8a154e

Please sign in to comment.