diff options
author | Azul <azul@riseup.net> | 2017-07-18 19:54:59 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-07-18 19:54:59 +0200 |
commit | f405631c25c0b4a43bb4aee03411421999dc74ef (patch) | |
tree | 82efb9454c0de7d785eba5ca21fc13b54d8fd3bc | |
parent | 63799b2695e95ae686dab9fed6b8341e0a12dfe6 (diff) |
gitlab: prefix log with timestamp and gitlab
-rw-r--r-- | jobs/gitlab_build_status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/gitlab_build_status.rb b/jobs/gitlab_build_status.rb index fdfe8a8..57fe0b0 100644 --- a/jobs/gitlab_build_status.rb +++ b/jobs/gitlab_build_status.rb @@ -10,7 +10,7 @@ SCHEDULER.every '120s', :first_in => 0 do next unless proj[:builds_enabled] GitlabStats.add_pipeline_stats_to proj - puts "#{proj[:name]} (#{proj[:ref]}): #{proj[:status]}" + puts "#{Time.now} gitlab: #{proj[:name]} (#{proj[:ref]}): #{proj[:status]}" unless proj[:status] =~ /^success|running|No builds configured/ broken_builds << proj end @@ -19,5 +19,5 @@ SCHEDULER.every '120s', :first_in => 0 do failed = broken_builds.size > 0 send_event('gitlab-builds', { failed: failed, header: "Gitlab builds", broken_builds: broken_builds }) - puts "Going through all projects took: #{Time.now - started}." + puts "#{Time.now} gitlab: Going through all projects took: #{Time.now - started}." end |