diff options
-rw-r--r-- | app/models/ci/job_artifact.rb | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb index 3f520bdfeb7..6321a4ca0be 100644 --- a/app/models/ci/job_artifact.rb +++ b/app/models/ci/job_artifact.rb @@ -32,7 +32,6 @@ module Ci metadata: 2, trace: 3, junit: 4 -<<<<<<< HEAD } GENERAL_ARCHIVE_FILE_TYPE = 'archive'.freeze @@ -48,8 +47,6 @@ module Ci FILE_FORMAT_ADAPTERS = { gzip: Gitlab::Ci::Build::Artifacts::GzipFileAdapter -======= ->>>>>>> 8f3b9c0d313f9eeef1b6e6b5eccf622156e960bd } def valid_file_format? unless TYPE_AND_FORMAT_PAIRS[self.file_type&.to_sym] == self.file_format&.to_sym @@ -61,31 +58,6 @@ module Ci ActiveRecord::Migrator.current_version <= ::Gitlab::Ci::Trace::ARCHIVE_LEGACY_TRACES_MIGRATION_VERSION end - GENERAL_ARCHIVE_FILE_TYPE = 'archive'.freeze - TEST_REPORT_FILE_TYPES = %w[junit].freeze - DEFAULT_FILE_NAMES = { junit: 'junit.xml' }.freeze - TYPE_AND_FORMAT_PAIRS = { archive: :zip, metadata: :gzip, trace: :raw, junit: :gzip }.freeze - - enum file_format: { - raw: 1, - zip: 2, - gzip: 3 - } - - FILE_FORMAT_ADAPTERS = { - gzip: Gitlab::Ci::Build::Artifacts::GzipFileAdapter - } - - def valid_file_format? - unless TYPE_AND_FORMAT_PAIRS[self.file_type&.to_sym] == self.file_format&.to_sym - errors.add(:file_format, 'Invalid file format with specified file type') - end - end - - def ignore_schema - ActiveRecord::Migrator.current_version <= ::Gitlab::Ci::Trace::ARCHIVE_LEGACY_TRACES_MIGRATION_VERSION - end - def update_file_store # The file.object_store is set during `uploader.store!` # which happens after object is inserted/updated @@ -146,4 +118,4 @@ module Ci job.project.pending_delete? end end -end +end
\ No newline at end of file |