summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-07-18 19:54:59 +0200
committerVarac <varac@leap.se>2017-10-16 13:20:43 +0200
commit053edccaa06a27bd6e93e8c6aeaee8ef718c8ad4 (patch)
tree173842d3fde3ca8117c3edf88b39e3a0da6a3de5
parentfc531b2895eb57d675c0037cc5d3381ff664f5d4 (diff)
gitlab: prefix log with timestamp and gitlab
-rw-r--r--jobs/gitlab_build_status.rb4
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