From 053edccaa06a27bd6e93e8c6aeaee8ef718c8ad4 Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 18 Jul 2017 19:54:59 +0200 Subject: gitlab: prefix log with timestamp and gitlab --- jobs/gitlab_build_status.rb | 4 ++-- 1 file 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 -- cgit v1.2.3