Submit Your Ideas

We want to hear from you - vote for the features and improvements you'd most like to see, or submit your own ideas if you don't find them already listed.

Add the `when` argument to `store_artifacts`

https://circleci.com/docs/2.0/artifacts/#artifacts-overview

Currently, store_artifacts has two keys: path and destination.

  • path is 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 path is used as the default.

    Adding the when attribute to a job step allows you to override this default behavior, and selectively run or skip steps depending on the status of the job.

    `- run: name: Upload Failed Tests command: curl --data fail_tests.log http://example.com/error_logs when: on_fail`

    Currently the `when` attribute is not available to storing artifacts and saving test results. This would allow for greater control.
  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Aug 29 2018
  • Future consideration
  • Attach files