]> git.lttng.org Git - lttng-ci.git/commitdiff
jjb: Output the core tar to the workspace root
authorKienan Stewart <kstewart@efficios.com>
Wed, 18 Dec 2024 15:55:01 +0000 (10:55 -0500)
committerKienan Stewart <kstewart@efficios.com>
Thu, 19 Dec 2024 16:08:12 +0000 (11:08 -0500)
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 <kstewart@efficios.com>
jobs/lttng-tools.yaml
scripts/lttng-tools/postbuild_clean_processes_coredumps.sh

index 2f5aaac70760b933a2ef846a31e5863bfd56a6d9..aefe1bb496fdc523d4e0fbe8575d9835fcdbf68b 100644 (file)
           allow-empty-results: true
 
       - archive: &lttng-tools_publisher_archive_defaults
-          artifacts: 'build/**,deps/**,tap/**,log/**'
+          artifacts: 'build/**,deps/**,tap/**,log/**,core.tar.xz'
           follow-symlinks: true
           allow-empty: false
 
index 17e574875b27d906488e198000601ef09602f87a..6f649a6ad62171201fb50303de2b3e6760a0af62 100755 (executable)
@@ -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
This page took 0.026979 seconds and 4 git commands to generate.