]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: Avoid unhelpful error in post 2495/head
authorZack Cerza <zack@cerza.org>
Mon, 10 Nov 2025 21:37:35 +0000 (14:37 -0700)
committerZack Cerza <zack@cerza.org>
Mon, 10 Nov 2025 21:37:35 +0000 (14:37 -0700)
Some failures during node setup were making it look like the job failed because
of a missing journal cursor file.

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

index 165a40266ab85b3e7540fe14ce99a77515961a6b..5e55559116c7309b7b141aba40abaef3080c39bf 100644 (file)
@@ -636,7 +636,7 @@ pipeline {
           always {
             script {
               sh 'hostname'
-              sh 'sudo journalctl -k -c $(cat ${WORKSPACE}/cursor)'
+              sh 'test -r ${WORKSPACE}/cursor && sudo journalctl -k -c $(cat ${WORKSPACE}/cursor)'
               sh 'podman unshare chown -R 0:0 ${WORKSPACE}/'
             }
           }