Commit b2cb15ed authored by Andrejs Cunskis's avatar Andrejs Cunskis

Set fallback report path first

parent b94ab577
......@@ -35,10 +35,9 @@ module QA
file = client.get_object(BUCKET, report_file)
File.write(report_path, file[:body])
rescue StandardError => e
ENV["KNAPSACK_REPORT_PATH"] = "knapsack/master_report.json"
logger.warn("Failed to fetch latest knapsack report: #{e}")
logger.warn("Falling back to 'knapsack/master_report.json'")
ENV["KNAPSACK_REPORT_PATH"] = "knapsack/master_report.json"
end
# Rename and move new regenerated report to a separate folder used to indicate report name
......
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