Skip to content

Reuse Job's artifacts.zip file

When we use a pattern like */failures.csv to say that this file can be at any place of the artifacts, the tool downloads the artifacts.zip to have access to the list of files to walk it looking for the file wanted.

But this download is ephemeral and once the file is found and provided the content, the tool forgets it (and deletes). But when a new pattern is set, like */results.csv, the tool has to download it again.

So, the solution is to encapsulate this in an object and the CollateJob knows where the artifacts.zip is stored if it is needed again. All the zip files will exist until the end of the life of the CollateJob object.

Merge request reports