jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-54164] Support onDelete build event to optionally delete image from registry
- Dominant language
- Java
- Stars
- 527
- Forks
- 422
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Hope this is the right component! We tend to do various builds which result in multiple Docker Images being stored within AWS ECR (in our case). Those builds that end up in Production are marked "Keep this build forever".
Those that are not, however, expire. It would be nice if we could configure (through Jenkinsfile) to allow this build's ECR output to be deleted on deletion of the build.
Note that the builds are often multi-module Maven jobs where there may be a dozen or more sub-modules each of which issue an ECR image. Manually keeping track of and deleting these is resource intensive.
---
Originally reported by jmkgreen, imported from: Support onDelete build event to optionally delete image from registry
Raw content of original issue
Hope this is the right component! We tend to do various builds which result in multiple Docker Images being stored within AWS ECR (in our case). Those builds that end up in Production are marked "Keep this build forever".
Those that are not, however, expire. It would be nice if we could configure (through Jenkinsfile) to allow this build's ECR output to be deleted on deletion of the build.
Note that the builds are often multi-module Maven jobs where there may be a dozen or more sub-modules each of which issue an ECR image. Manually keeping track of and deleting these is resource intensive.
Contributor guide
Assessment
This issue has not been assessed yet.