Search code examples
pipelinecircleciartifact

Is it possible to store artifact into Circle CI during the multi-stage build?


I have test and deploy paths into the workflow and when I sequentially execute them deploy overrides artifact.

Is it possible to keep it, so it will be passed from stage to stage sequentially? Store artifact into Slack or any other system is not an option due to limitations in the development environment.


Solution

  • The Circle CI provides the solution through workspace.

    To share artifact or any set of files, you need to persist_to_workspace into the test stage and attach_to_workspace on the deploy stage.

    The only catch is to persist artifact on the deploy phase. workspace itself is available for not more than 30 days.