We have a requirement where a properties files from a Git repo that was cloned during the build stage need to be available during the deploy stage. To make this possible we are currently cloning the same repository again during the deploy process.
We are looking for a solution to avoid cloning the same repository multiple times during the pipeline run and make the file available in the cache that can be leveraged as required during the later stages of the pipeline.