jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-55776] export image information to build steps

Open
#598 0 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin enhancement imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

Due to Jenkins not doing it's own docker image garbage collection I would like to implement my own garbage collection based on which images are actually current and which are stale rather than the more naïve implementation in docker-gc of just removing the oldest images without regard to whether they are actually still currently being used by Pipeline jobs or not.

To do so, I need to keep an accounting of which images are being used by which jobs. This would need to be done in the step, or post of a Pipeline job and as such it would be useful if some kind of identifier of the image (image ID, tag, etc.) were exported to the job step and/or post.

---
Originally reported by brianjmurrell, imported from: export image information to build steps


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

Raw content of original issue

Due to Jenkins not doing it's own docker image garbage collection I would like to implement my own garbage collection based on which images are actually current and which are stale rather than the more naïve implementation in docker-gc of just removing the oldest images without regard to whether they are actually still currently being used by Pipeline jobs or not.

To do so, I need to keep an accounting of which images are being used by which jobs. This would need to be done in the step, or post of a Pipeline job and as such it would be useful if some kind of identifier of the image (image ID, tag, etc.) were exported to the job step and/or post.

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.