Repository navigation
[9.6](backport #8313) dra: delete artifacts after successfully DRA published - #8351
mergify[bot] wants to merge 1 commit into
Conversation
(cherry picked from commit 4133654)
|
Tick the box to add this pull request to the merge queue (same as
|
There was a problem hiding this comment.
🟡 Changes recommended
Artifact cleanup is gated on step success rather than DRA publication eligibility, so successful non-publishing builds can lose their downloadable Buildkite artifacts.
1 open issue
What changed in this PR
Backports #8313 to 9.6, aiming to reduce storage costs by deleting Buildkite artifacts after DRA publication.
Changes:
- Adds a wait barrier before artifact cleanup.
- Adds a Kubernetes cleanup step using a Vault-provided API token and the artifact-deletion plugin, configured to continue on errors.
| File | Description |
|---|---|
.buildkite/pipeline.package.mbp.yml |
Adds the wait barrier and authenticated artifact-cleanup step. |
Review effort: Balanced
|
|
||
| - wait: ~ | ||
|
|
||
| - label: ":wastebasket: Delete build artifacts" |
|
Dependency review finished without posting an analysis comment. If you expected a review, push a new commit to this pull request (or close and reopen it) to try again. Workflow run: https://github.com/elastic/fleet-server/actions/runs/45361247437 |

What is the problem this PR solves?
Keep our storage cost under control.
How does this PR solve the problem?
Delete artifacts automatically after successfully running the DRA step.
How to test this PR locally
In the CI only, see https://buildkite.com/elastic/fleet-server-package-mbp/builds/4923
Design Checklist
Checklist
./changelog/fragmentsusing the changelog toolRelated issues
This is an automatic backport of pull request #8313 done by [Mergify](https://mergify.com).