summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-06-20 19:52:47 +0000
committerRobert Speicher <robert@gitlab.com>2018-06-20 19:52:47 +0000
commitad0073bc0f9b1d7198b65b7cf800cb2e902475f2 (patch)
treea9edb80174718033bff0f0fa0f7d2a5c93830957
parent73db8232a2eaddeaac5b087f1a0b507d78f0c1f0 (diff)
parent67f310e41fe739d28e5620b816e8568433e977ce (diff)
downloadgitlab-ce-ad0073bc0f9b1d7198b65b7cf800cb2e902475f2.tar.gz
Merge branch 'improve-scripts-trigger-build' into 'master'
Ignore GitLab API hiccups in scripts/trigger-build See merge request gitlab-org/gitlab-ce!20038
-rwxr-xr-xscripts/trigger-build4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/trigger-build b/scripts/trigger-build
index 526f5164ede..798bf1e82b7 100755
--- a/scripts/trigger-build
+++ b/scripts/trigger-build
@@ -165,6 +165,10 @@ module Trigger
end
JSON.parse(res.body)['status'].to_s.to_sym
+ rescue JSON::ParserError
+ # Ignore GitLab API hiccups. If GitLab is really down, we'll hit the job
+ # timeout anyway.
+ :running
end
end
end