在多阶段构建期间是否可以将工件存储到Circle CI中? [英] Is it possible to store artifact into Circle CI during the multi-stage build?

查看:103
本文介绍了在多阶段构建期间是否可以将工件存储到Circle CI中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作流程中具有testdeploy路径,当我依次执行它们时,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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆