]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: Report kernel msgs in post 2436/head
authorZack Cerza <zack@cerza.org>
Tue, 26 Aug 2025 21:09:37 +0000 (15:09 -0600)
committerZack Cerza <zack@cerza.org>
Tue, 26 Aug 2025 23:01:09 +0000 (17:01 -0600)
The inspiration is to help us find instances of OOM kills, but may be helpful
with other issues.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-dev-pipeline/build/Jenkinsfile

index 6406da6f54b8ffe3f8cb9f7e3737851630d2e747..bf5c05e41ce16bdfce501b8a15eb750076745e04 100644 (file)
@@ -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}/'
             }
           }