Skip to content
代码片段 群组 项目
未验证 提交 d3c39d03 编辑于 作者: Rakhman Musoyev's avatar Rakhman Musoyev 提交者: GitLab
浏览文件

Clarify artifact retention for multiple pipelines on same commit

上级 2280de8a
No related branches found
No related tags found
2 合并请求!3031Merge per-main-jh to main-jh by luzhiyuan,!3030Merge per-main-jh to main-jh
...@@ -383,20 +383,15 @@ With this configuration, GitLab adds **artifact 1** as a link to `file.txt` to t ...@@ -383,20 +383,15 @@ With this configuration, GitLab adds **artifact 1** as a link to `file.txt` to t
{{< /history >}} {{< /history >}}
By default artifacts are always kept for successful pipelines for the most recent commit on each ref. By default, artifacts are always kept for the most recent successful pipeline on each ref. Any `expire_in` configuration does not apply to the most recent artifacts.
Any [`expire_in`](#with-an-expiry) configuration does not apply to the most recent artifacts.
A pipeline's artifacts are only deleted according to the `expire_in` configuration When a new pipeline on the same ref completes successfully, the previous pipeline's artifacts are deleted according to the `expire_in` configuration. The artifacts of the new pipeline are kept automatically.
if a new pipeline runs for the same ref and:
A pipeline’s artifacts are only deleted according to the `expire_in` configuration if a new pipeline runs for the same ref and:
- Succeeds. - Succeeds.
- Fails.
- Stops running due to being blocked by a manual job. - Stops running due to being blocked by a manual job.
Additionally, artifacts are kept for the ref's last successful pipeline even if it
is not the latest pipeline. As a result, if a new pipeline run fails, the last successful pipeline's
artifacts are still kept.
Keeping the latest artifacts can use a large amount of storage space in projects Keeping the latest artifacts can use a large amount of storage space in projects
with a lot of jobs or large artifacts. If the latest artifacts are not needed in with a lot of jobs or large artifacts. If the latest artifacts are not needed in
a project, you can disable this behavior to save space: a project, you can disable this behavior to save space:
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册