diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-01-03 18:28:00 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-03 18:28:00 +0100 |
commit | 4ce3e01cfc6211c60f0a1c1af49172290cfa77c5 (patch) | |
tree | 025ff7c596a251a1b203de24dde6fd05c97a446f /bin/g-i-installation.sh | |
parent | b6326eb63d27174170bfb5083cdf0b3f605d485e (diff) | |
download | jenkins.debian.net-4ce3e01cfc6211c60f0a1c1af49172290cfa77c5.tar.xz |
g-i: take regular screenshots during installation and another if installation is hanging
Diffstat (limited to 'bin/g-i-installation.sh')
-rwxr-xr-x | bin/g-i-installation.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 6ccd5b22..f878a51e 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -1097,6 +1097,10 @@ monitor_system() { echo "$(date) $PRINTF_NR / $TOKEN" publish_screenshot fi + # in install mode, every 300 ticks preserve an screenshot as artefact + if [ "$MODE" = "install" ] && [ $(($NR % 300)) -eq 0 ] ; then + backup_screenshot + fi # every 100 screenshots, starting from the $TIMEOUTth one... if [ $(($NR % 100)) -eq 0 ] && [ $NR -gt $TIMEOUT ] ; then # from help let: "Exit Status: If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise." @@ -1134,6 +1138,7 @@ monitor_system() { echo "System in $MODE mode is hanging." if [ "$MODE" = "install" ] ; then # hanging install = broken install + backup_screenshot exit 1 fi break |