尤川豪   ·  4年前
445 貼文  ·  275 留言

bitbucket pipelines 筆記

A cache is something that you want to store across multiple pipeline runs.

For example, installed dependencies. The idea is to download the dependencies in a pipeline run, and then reuse those in other runs afterwards (to reduce pipeline time spent downloading).

  • A cache needs to be defined in the step that you want to consume the cache in, this step will also create and upload a new cache if it does not exist.

An artifact is something that you want to persist across multiple steps, in a single pipeline run.

For example, if you've built and tested a binary in one step, and you want to have deployment steps afterwards. Then you're deploying the same object that you've already tested (rather than recreating it).

  • An artifact needs to be defined on a step that has created the artifact. However, this artifact is propagated to all subsequent steps, without requiring any configuration on the other steps.

https://community.atlassian.com/t5/Bitbucket-questions/caches-vs-artifacts/qaq-p/864904

  分享   共 1,163 次點閱
共有 0 則留言
還沒有人留言。歡迎分享您的觀點、或是疑問。
您的留言
尤川豪
445 貼文  ·  275 留言

Devs.tw 是讓工程師寫筆記、網誌的平台。隨手紀錄、寫作,方便日後搜尋!

歡迎您一起加入寫作與分享的行列!

查看所有文章