lib/jiminy/reporting/ci_providers/circle_ci/artifact.rb in jiminy-0.1.0.pre1 vs lib/jiminy/reporting/ci_providers/circle_ci/artifact.rb in jiminy-0.1.0

- old
+ new

@@ -6,10 +6,12 @@ module CircleCI class Artifact < Base define_attribute_readers :url def self.all(job_number:) - fetch_api_resource("project/gh/#{Jiminy.config.repo_path}/#{job_number}/artifacts") + # TODO: Support different results names here + fetch_api_resource("project/gh/#{Jiminy.config.repo_path}/#{job_number}/artifacts"). + select { |artifact| artifact.url.end_with?("jiminy/results.yml") } end end end end end