ci: run system-status.sh in case a job fails

The new `system-status.sh` script logs the status of the host and the
minikube VM. This gets executed when a CI job fails, and should aid in
troubleshooting spurious failures.

Updates: #1969
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2021-05-11 12:28:55 +02:00
committed by mergify[bot]
parent 4ef36aed0c
commit e36155283b
5 changed files with 64 additions and 0 deletions

View File

@ -188,6 +188,12 @@ node('cico-workspace') {
}
}
catch (err) {
stage('log system status') {
ssh './system-status.sh'
}
}
finally {
stage('return bare-metal machine') {
sh 'cico node done ${CICO_SSID}'