aboutsummaryrefslogtreecommitdiff
path: root/tcwg-reboot.yaml
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-04-17 10:22:52 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-04-17 14:33:10 +0000
commit8aed35af586434aff3a78f4c7bf70c4c22a17afc (patch)
tree9f6b90a9d2e49205fbc3b63e4277c8c9920b1141 /tcwg-reboot.yaml
parent3adf4cecb6d13acd8f399417603b3c577d38fab7 (diff)
tcwg-reboot: Send out email when we could not reboot the node
Change-Id: I6b60bcb4845fc43859e247dbe9af8138178cf527
Diffstat (limited to 'tcwg-reboot.yaml')
-rw-r--r--tcwg-reboot.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/tcwg-reboot.yaml b/tcwg-reboot.yaml
index 4d12d008..438b46d8 100644
--- a/tcwg-reboot.yaml
+++ b/tcwg-reboot.yaml
@@ -65,10 +65,19 @@
else
user=$USER
fi
- $DRYRUN ssh -p22 -o StrictHostKeyChecking=no $user@localhost sudo reboot
+ $DRYRUN ssh -p22 -o StrictHostKeyChecking=no $user@localhost sudo reboot || true
+ # We expect non-zero exit when node is rebooted. If we get here
+ # that means we have a failure (unless $dry_run, of course).
+ if $dry_run; then
+ false
+ else
+ true
+ fi
publishers:
- email-ext:
recipients: tcwg-validation@linaro.org
content-type: text
subject: '[CI-NOTIFY]: ${PROJECT_NAME} on ${NODE_NAME} - Build # ${BUILD_NUMBER} ${BUILD_STATUS}'
aborted: true
+ failure: false
+ success: true