Answered by:
Build Definition - Getting " The revision number $(Rev:.rr) is allowed to occur only at the end of the format string." Error

Question
-
I have configured the format as below:
"$(BuildDefinitionName)_$(Date:yyyyMMdd)_$(Rev:.rr)"
Even then after running the build, i am getting the below error:
The revision number $(Rev:.rr) is allowed to occur only at the end of the format string.
I am clueless of what can be the reason for this error.
TIA.
Wednesday, June 11, 2014 5:30 AM
Answers
-
Hi Cece,
I figured out the issue, the master build process template was setting Build Number by appending few more parameters post the BuildNumberFormat hence, we were getting error stating the Revision number should be in last. Thanks for your attempt.
Regards
- Marked as answer by MeenakshiN Friday, June 13, 2014 10:32 AM
Friday, June 13, 2014 10:32 AM
All replies
-
Hi,
Thanks for your post.
I'd like to confirm with you what's the version of TFS are you using? And what's the version of VS are you using?
Could you share us detailed error message? Screenshot will be better.
I tried on my TFS 2013.2 + VS 2013 Update2 RC, modified the "Build number format" to $(BuildDefinitionName)_$(Date:yyyyMMdd)_$(Rev:.rr), and queued a build. The build ran successfully:
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Wednesday, June 11, 2014 11:35 AM -
Hi Cece,
How are you?
Does queuing build from a lower version matters?
TFS 2012 and i tried queuing build from VS 2010. It fails with VS 2012 as well. This is the only error i get even after turning on the diagnostic mode.
Thanks for your quick responce.
Thursday, June 12, 2014 10:07 AM -
Hi,
I tired with TFS 2012.4 + VS 2012 RTM, the format also can be modified.
Please try to clean the cache file on your client machine to see if it helps. The path is C:\Users\username\AppData\Local\Microsoft\Team Foundation\4.0\Cache.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Friday, June 13, 2014 10:08 AM -
Hi Cece,
I figured out the issue, the master build process template was setting Build Number by appending few more parameters post the BuildNumberFormat hence, we were getting error stating the Revision number should be in last. Thanks for your attempt.
Regards
- Marked as answer by MeenakshiN Friday, June 13, 2014 10:32 AM
Friday, June 13, 2014 10:32 AM -
Any solution to this? I am using TFS2012_4 and I just can't get past this error.
Regards.
Sunday, November 9, 2014 8:02 AM