Commit a1ae56b8 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'dz-memorize-report-artifacts' into 'master'

Merorize report artifacts into instance variables

See merge request gitlab-org/gitlab-ee!5016
parents 0ff24c10 2b7acb65
......@@ -13,23 +13,23 @@ module EE
end
def codeclimate_artifact
artifacts.codequality.find(&:has_codeclimate_json?)
@codeclimate_artifact ||= artifacts.codequality.find(&:has_codeclimate_json?)
end
def performance_artifact
artifacts.performance.find(&:has_performance_json?)
@performance_artifact ||= artifacts.performance.find(&:has_performance_json?)
end
def sast_artifact
artifacts.sast.find(&:has_sast_json?)
@sast_artifact ||= artifacts.sast.find(&:has_sast_json?)
end
def sast_container_artifact
artifacts.sast_container.find(&:has_sast_container_json?)
@sast_container_artifact ||= artifacts.sast_container.find(&:has_sast_container_json?)
end
def dast_artifact
artifacts.dast.find(&:has_dast_json?)
@dast_artifact ||= artifacts.dast.find(&:has_dast_json?)
end
def initialize_yaml_processor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment