Welcome to mirror list, hosted at ThFree Co, Russian Federation.

push_job_metrics « bin « tooling - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae84fc6b04c82f95d598b04c6817f37e3deceaad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative '../lib/tooling/job_metrics'

unless ENV['CI_JOB_METRICS_ENABLED'] == 'true'
  puts "[job-metrics] Feature disabled because CI_JOB_METRICS_ENABLED is not set to true."
  exit 0
end

puts "[job-metrics] Pushing job metrics file for the CI/CD job."
Tooling::JobMetrics.new.push_metrics