From 4f48fc07bba76f6cf7252f954383d4bd58f55d59 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 18 Dec 2024 10:55:01 -0500 Subject: [PATCH] jjb: Output the core tar to the workspace root When navigating to the build artifacts, having this file in the 'root' makes it much more visible for users. Change-Id: I7dfed9fd94d615e68a1d7659ddf2cc0096968dce Signed-off-by: Kienan Stewart --- jobs/lttng-tools.yaml | 2 +- scripts/lttng-tools/postbuild_clean_processes_coredumps.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/lttng-tools.yaml b/jobs/lttng-tools.yaml index 2f5aaac..aefe1bb 100644 --- a/jobs/lttng-tools.yaml +++ b/jobs/lttng-tools.yaml @@ -513,7 +513,7 @@ allow-empty-results: true - archive: <tng-tools_publisher_archive_defaults - artifacts: 'build/**,deps/**,tap/**,log/**' + artifacts: 'build/**,deps/**,tap/**,log/**,core.tar.xz' follow-symlinks: true allow-empty: false diff --git a/scripts/lttng-tools/postbuild_clean_processes_coredumps.sh b/scripts/lttng-tools/postbuild_clean_processes_coredumps.sh index 17e5748..6f649a6 100755 --- a/scripts/lttng-tools/postbuild_clean_processes_coredumps.sh +++ b/scripts/lttng-tools/postbuild_clean_processes_coredumps.sh @@ -88,8 +88,8 @@ done < <(find "/tmp" -maxdepth 1 -name "core\.[0-9]*" -type f 2>/dev/null) # If we recorded some files to collect, pack them up. if [ -s "$file_list" ]; then - mkdir -p "${WORKSPACE}/build" - tar cJfh "${WORKSPACE}/build/core.tar.xz" -T <(sort "$file_list" | uniq) + mkdir -p "${WORKSPACE}/" + tar cJfh "${WORKSPACE}/core.tar.xz" -T <(sort "$file_list" | uniq) fi # Remove core files -- 2.39.5