How to get a list of all packages(docker images) built ? #19385
-
Hi, I have a monorepo and I am following the directory structure:
` I am using jenkins as my build system,. To build docker images I am using the following command
This is working as one would expect, only changed files lead to rebuild. To get the list of all docker images built or their versions, I have to look in logs of jenkins and find the image tags. When some core file changes it can trigger 3-4(or more) images being rebuilt however I have no easy way to track the rebuilt docker images. Is there an easy way to:
I am sure there are some industry standards to achieve what I want, maybe my approach is wrong. Any pointers will be helpful. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, Yes, use the It's trivial enough to write some tool that parse this file to trigger what ever APIs you need based on that :) |
Beta Was this translation helpful? Give feedback.
-
oh right, thank you. I somehow missed this. This is exactly what I was looking for. |
Beta Was this translation helpful? Give feedback.
Hi,
Yes, use the
--publish-output
option https://www.pantsbuild.org/docs/reference-publish#output to get a JSON file with details about all targets that was published.It's trivial enough to write some tool that parse this file to trigger what ever APIs you need based on that :)