diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/job_artifact.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb index c4f1e900615..6fc2d9e8282 100644 --- a/app/models/ci/job_artifact.rb +++ b/app/models/ci/job_artifact.rb @@ -19,7 +19,7 @@ module Ci scope :with_files_stored_locally, -> { where(file_store: [nil, ::JobArtifactUploader::Store::LOCAL]) } scope :test_reports, -> do - types = self.file_types.select { |k, v| TEST_REPORTS_FILE_TYPES.include?(k) }.values + types = self.file_types.select { |k, _| TEST_REPORT_FILE_TYPES.include?(k) }.values where(file_type: types) end @@ -33,8 +33,8 @@ module Ci junit: 4 } - GENERAL_FILE_TYPES = %w[archive].freeze - TEST_REPORTS_FILE_TYPES = %w[junit].freeze + GENERAL_ARCHIVE_FILE_TYPE = 'archive'.freeze + TEST_REPORT_FILE_TYPES = %w[junit].freeze DEFAULT_FILE_NAMES = { junit: 'junit.xml' }.freeze enum file_format: { |