Skip to content

Commit

Permalink
archive native libs (adoptium#4859)
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia committed Nov 22, 2023
1 parent 3859ee0 commit f9cbc65
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 @@ -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) {
Expand Down

0 comments on commit f9cbc65

Please sign in to comment.