diff options
author | Varac <varac@leap.se> | 2017-07-17 18:36:56 +0200 |
---|---|---|
committer | Varac <varac@leap.se> | 2017-10-16 13:20:42 +0200 |
commit | e7d8080b14a32788f120c1abde69ed0420d760b0 (patch) | |
tree | 79cf3f31f9fdc089dbba00f21f968ba72c0c7439 /jobs/gitlab_build_status.rb | |
parent | 009594945171ce5aab15d341f36fad80dce36377 (diff) |
Add Nagios
Diffstat (limited to 'jobs/gitlab_build_status.rb')
-rw-r--r-- | jobs/gitlab_build_status.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jobs/gitlab_build_status.rb b/jobs/gitlab_build_status.rb index addfaed..be52f98 100644 --- a/jobs/gitlab_build_status.rb +++ b/jobs/gitlab_build_status.rb @@ -1,6 +1,5 @@ require 'gitlab' require 'date' -require 'pp' Gitlab.configure do |config| # API endpoint URL, default @@ -10,7 +9,7 @@ Gitlab.configure do |config| config.private_token = ENV['GITLAB_TOKEN'] end -SCHEDULER.every '300s', :first_in => 0 do +SCHEDULER.every '3000s', :first_in => 0 do broken_builds = [] # get a list of all projects @@ -35,7 +34,7 @@ SCHEDULER.every '300s', :first_in => 0 do unless proj[:status] =~ /^success|running|No builds configured$/ broken_builds << proj end - puts proj + #puts proj end failed = broken_builds.size > 0 |