jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-54164] Support onDelete build event to optionally delete image from registry

Open
#587 0 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.