I'm using a build agent which is from a dockerfile. I have jenkins with the artefactory plugin.
I would like to include the "FROM" statement in the dockerfile to my artifactory so that the build dependencies include the container (aka build environment) too. (I'm collecting everything through the maven build through the plugin then using the rtPublishBuildInfo to collate it together through all pipeline steps)
Today I can manually add an rtDockerPull command to the pipeline with the same line, but I can't quite work out if there is an automatic way to do this. I'm using a declarative pipeline so that does tie my hands slightly too.
I'm doing this in a corporate environment, what I need is somethign that is as flexible and "standard" as possible. Has anyone had to solve this problem before?