From e6ec04bf99fd0217a2654dc7824265f37870750f Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 8 Jan 2016 16:46:16 -0600 Subject: [PATCH] ceph-pull-requests: use a postbuildscript to only reboot on failure Signed-off-by: Andrew Schoen --- .../config/definitions/ceph-pull-requests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml index 99de8f79..81d92368 100644 --- a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml +++ b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml @@ -47,7 +47,11 @@ builders: - shell: "./run-make-check.sh" - - shell: "sudo reboot" publishers: - github-notifier + - postbuildscript: + script-only-if-succeeded: False + script-only-if-failed: True + builders: + - shell: "sudo reboot" -- 2.39.5