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

**URL:** https://www.finalbuilder.com/forums/t/using-build-version-in-repository-rules-to-copy-from-server-to-agent/5126
**Category:** Feature Requests
**Created:** [December 9, 2013, 10:10am UTC](https://www.finalbuilder.com/forums/t/using-build-version-in-repository-rules-to-copy-from-server-to-agent/5126 "2013-12-09T10:10:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nagaraj.naik](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/49beb7/32.png) [@nagaraj.naik](https://www.finalbuilder.com/forums/u/nagaraj.naik)
#### Post date: [December 9, 2013, 10:10am UTC](https://www.finalbuilder.com/forums/t/using-build-version-in-repository-rules-to-copy-from-server-to-agent/5126/1 "2013-12-09T10:10:29Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 10, 2013, 3:22am UTC](https://www.finalbuilder.com/forums/t/using-build-version-in-repository-rules-to-copy-from-server-to-agent/5126/2 "2013-12-10T03:22:08Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nagaraj.naik](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/49beb7/32.png) [@nagaraj.naik](https://www.finalbuilder.com/forums/u/nagaraj.naik)
#### Post date: [December 10, 2013, 9:30am UTC](https://www.finalbuilder.com/forums/t/using-build-version-in-repository-rules-to-copy-from-server-to-agent/5126/3 "2013-12-10T09:30:56Z")

</div>

Ok, Thank you
