From ef056704223e75fdc1f711dbbe5ba53dd75bab75 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 26 Aug 2025 15:09:37 -0600 Subject: [PATCH] ceph-dev-pipeline: Report kernel msgs in post The inspiration is to help us find instances of OOM kills, but may be helpful with other issues. Signed-off-by: Zack Cerza --- ceph-dev-pipeline/build/Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index 6406da6f..bf5c05e4 100644 --- a/ceph-dev-pipeline/build/Jenkinsfile +++ b/ceph-dev-pipeline/build/Jenkinsfile @@ -263,6 +263,7 @@ pipeline { filter: artifact_filter, ) } + sh 'sudo journalctl --show-cursor -n 0 --no-pager | tail -n1 | cut -d\" \" -f3 > $WORKSPACE/cursor' script { def sha1_trimmed = env.SHA1.trim().toLowerCase() def sha1_props = readProperties file: "${WORKSPACE}/dist/sha1" @@ -616,6 +617,7 @@ pipeline { always { script { sh 'hostname' + sh 'sudo journalctl -k -c $(cat ${WORKSPACE}/cursor)' sh 'podman unshare chown -R 0:0 ${WORKSPACE}/' } } -- 2.39.5