在多阶段构建期间是否可以将工件存储到Circle CI中? [英] Is it possible to store artifact into Circle CI during the multi-stage build?
问题描述
我在工作流程中具有test
和deploy
路径,当我依次执行它们时,deploy
会覆盖artifact
.
I have test
and deploy
paths into the workflow and when I sequentially execute them deploy
overrides artifact
.
是否可以保留它,所以它会在每个阶段依次传递?由于开发环境的限制,不能将artifact
存储到Slack
或任何其他系统中.
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.
推荐答案
Circle CI
通过要共享artifact
或任何文件集,您需要persist_to_workspace
进入test
阶段,并attach_to_workspace
进入deploy
阶段.
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.
唯一的困难是将artifact
保留在deploy
阶段. workspace
本身的可用期限不超过30天.
The only catch is to persist artifact
on the deploy
phase. workspace
itself is available for not more than 30 days.
这篇关于在多阶段构建期间是否可以将工件存储到Circle CI中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!