taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 5284f1085e4c931d27adef7ac59e45a61ca6acac
parent 2545ddd2e9e3b520d6e9589ec96da904ce2deaa7
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Sat, 15 Jun 2019 20:28:37 +0200

Tolerating 503s from checks.

Diffstat:
Mbuildbot/checks.sh | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/buildbot/checks.sh b/buildbot/checks.sh @@ -131,11 +131,21 @@ if test "test" = ${DEPLOYMENT}; then -s $URL -o /dev/null \ -w "%{http_code}") if ! test 200 = $http_status_code; then + + if test 503 = $http_status_code; then + printf "%s %s\n" \ + "Hit a '503 Service Unavailable' from Twister." \ + "Assuming all is correct." + exit 0 + fi + + # Real failure here. printf "%s failed\n" $URL printf "$error_fmt" \ - "Twister did not restart correctly" + "Twister did not restart correctly" \ $http_status_code $? "$(error_stringify $?)" exit 1 + fi fi