<#19385 How to get a list of all packages(docker i...
# github-notifications
c
#19385 How to get a list of all packages(docker images) built ? New discussion created by Adityav2410 Hi, I have a monorepo and I am following the directory structure:
Copy code
src

• python
• docker
I am using jenkins as my build system,. To build docker images I am using the following command
pants --filter-address-regex=\"src/docker/*\" --changed-since=${env.REFERENCE_COMMIT} --changed-dependents=transitive publish
where REFERENCE_COMMIT=previous_commit, or
origin/main-HEAD
if pipeline is running from a branch. 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: 1. Get the list of docker images built in some output file which we can then show in
jenkins
artifacts page ? 2. Can we trigger some hooks like call some API with these list of image tags so that we can log them in our system and view in dashboard ? I am sure there are some industry standards to achieve what I want, maybe my approach is wrong. Any pointers will be helpful. Thanks. pantsbuild/pants