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>
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"
always {
script {
sh 'hostname'
+ sh 'sudo journalctl -k -c $(cat ${WORKSPACE}/cursor)'
sh 'podman unshare chown -R 0:0 ${WORKSPACE}/'
}
}