I'm new to Jenkins and I just hit on the same problem, as if some tokens are still not supported in the attachment field? Or maybe I'm using it in a wrong way?
I'm using this path in the attachment field...
where the $BUILD_NUMBER is supposed to translate to the build number. This variable works OK in other fields, but not in the attachment field. The file is correctly attached only if I replace the $BUILD_NUMBER variable with the number. But as you can imagine, it's not ideal solution as the number of the .rxzlog file changes with every build.
I'm using Jenkins ver. 1.496. Thanks in advance!