-
Notifications
You must be signed in to change notification settings - Fork 164
Docker image Module Id is incorrect #665
Description
Describe the bug
When using the Jenkins Artifactory plugin v3.16.0+ collecting build information about a Docker image it will set the module id incorrectly, keeping only the last part of the image name. In short, any namespace or other prefix is stripped except for the string after the last / (slash).
To Reproduce
Use Build info extractor v2.36.0 or later and collect build info about a docker image build containing more than one slash in its name. Example: <docker.registry>/mynamespace/part1/part2:tag.
The module id should be mynamespace/part1/part2:tag but becomes part2:tag
Expected behavior
I would expect the module id in the build info be the complete image name, i.e. mynamespace/part1/part2:tag so that I can use the module id as a reference to the image. This was the behaviour prior to v2.36.0 and I can't find any note about breaking changes in the release log.
Versions
- Extractor version: v2.36.0
- Operating system: Linux
- Artifactory Version: 7.41.7
Additional context
This is the commit and line that broke the working implementation.
9a38bce#diff-a2a11f1de8fbc6155e4bd1bb32af64fd6ff9443e29b1b0b781a7e56324709ad4R231