Using $Build.Version$ in Repository rules to copy from server to agent

If we use "ServerPath >> $Build.Version$" as repository rule and then change the Build.Version in Build stage results in conflicts.

I Understand that first repository rule is executed first and then the Build stage, but we have a usecase where the repository is checked out to particualr version number for traceback. Is it possible to change the Build.Version number before the build stage?

No, this cannot be done. My suggestion would be do not use the build version as a folder name, there’s really no point, because each build has it’s own individual workspace folder. If you really need to use the version number for a folder name, then do it on the last stage by using a workspace rule.

Ok, Thank you