I have a generic repository object with a variable defining the repository name, the same variable needs to be accessible when defining the reference copy.
For example, my repository URL is:
https://stashserver/${vars.getValue("buildRepoName")}.git
My reference copy should be:
C:\RepoStorage\${vars.getValue("buildRepoName")}
Also, if I am building on both Linux and windows, I need to specify the path to the RepoStorage folder as a variable as well.