diff options
Diffstat (limited to 'app/models/ci/job_artifact.rb')
-rw-r--r-- | app/models/ci/job_artifact.rb | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb index 8bbb92e319f..02e17afdab0 100644 --- a/app/models/ci/job_artifact.rb +++ b/app/models/ci/job_artifact.rb @@ -46,7 +46,8 @@ module Ci terraform: 'tfplan.json', cluster_applications: 'gl-cluster-applications.json', requirements: 'requirements.json', - coverage_fuzzing: 'gl-coverage-fuzzing.json' + coverage_fuzzing: 'gl-coverage-fuzzing.json', + api_fuzzing: 'gl-api-fuzzing-report.json' }.freeze INTERNAL_TYPES = { @@ -65,11 +66,8 @@ module Ci cluster_applications: :gzip, lsif: :zip, - # All these file formats use `raw` as we need to store them uncompressed - # for Frontend to fetch the files and do analysis - # When they will be only used by backend, they can be `gzipped`. - accessibility: :raw, - codequality: :raw, + # Security reports and license scanning reports are raw artifacts + # because they used to be fetched by the frontend, but this is not the case anymore. sast: :raw, secret_detection: :raw, dependency_scanning: :raw, @@ -77,16 +75,24 @@ module Ci dast: :raw, license_management: :raw, license_scanning: :raw, + + # All these file formats use `raw` as we need to store them uncompressed + # for Frontend to fetch the files and do analysis + # When they will be only used by backend, they can be `gzipped`. + accessibility: :raw, + codequality: :raw, performance: :raw, browser_performance: :raw, load_performance: :raw, terraform: :raw, requirements: :raw, - coverage_fuzzing: :raw + coverage_fuzzing: :raw, + api_fuzzing: :raw }.freeze DOWNLOADABLE_TYPES = %w[ accessibility + api_fuzzing archive cobertura codequality @@ -194,7 +200,8 @@ module Ci requirements: 22, ## EE-specific coverage_fuzzing: 23, ## EE-specific browser_performance: 24, ## EE-specific - load_performance: 25 ## EE-specific + load_performance: 25, ## EE-specific + api_fuzzing: 26 ## EE-specific } # `file_location` indicates where actual files are stored. @@ -283,6 +290,15 @@ module Ci max_size&.megabytes.to_i end + def to_deleted_object_attrs + { + file_store: file_store, + store_dir: file.store_dir.to_s, + file: file_identifier, + pick_up_at: expire_at || Time.current + } + end + private def set_size |