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

create_job_metrics_file « bin « tooling - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25323f9b78b8f39434b87e07a96ae95c50f44e60 (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] Creating the job metrics file for the CI/CD job."
Tooling::JobMetrics.new.create_metrics_file