store_artifacts has two keys:
pathis a path to the file or directory to be uploaded as artifacts.
destination(Optional) is a prefix added to the artifact paths in the artifacts API. The directory of the file specified in
pathis used as the default.
whenattribute to a job step allows you to override this default behavior, and selectively run or skip steps depending on the status of the job.