Among other problems I am toiling with in attempting to make our build work with TeamCity is the fact that I seem to be unable to use the build number variable to create a directory at run time. I wrote an init ant target that includes creating a directory that includes the current build number.
This is what I have tried so far (with all non-pertinent code removed):
<property name="BUILD_LOGS" value="$/build-$/logs"/>
I have also tried the following variable names for the build number:
The result is that the directory created is the literal string rather than the build number value.
Can anyone suggest a way of doing this?