You don't need the "." within the revision number format.
$(date:yyyyMMdd).$(rev:r) is the same as $(date:yyyyMMdd)$(rev:.r)
I wanted to start my revision numbers at 101 rather than 1, so I set the format to:
$(date:yyyyMMdd).1$(rev:rr)
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The docs also say $(Rev:.r) is e.g. 2, but really it's e.g. .2.
This leads to extra .'s if you take the doc at face value and do $(date:yyyyMMdd).$(rev:.r): 20181025..1.
(I think it would be difficult to document that . isn't required without clearing up what I'm seeing, so just leaving a comment here. 😄)
Probably the default format needs to be amended, going forward you could set it to:
$(date:yyyyMMdd).$(rev:r)
rather than
$(date:yyyyMMdd)$(rev:.r)
This wouldn't break anything would it?
I'm not sure if you're asking me the question--just in case: I don't know, I'm just another AzDO user. 😄 I'm just pointing out a very related doc issue that I imagine will be fixed at the same time as this one.
OK - understood!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
https://docs.microsoft.com/azure/devops/pipelines/process/run-number
Thank you for the suggestion. Apologies for the very delayed response.
Most helpful comment
The docs also say
$(Rev:.r)is e.g.2, but really it's e.g..2.This leads to extra
.'s if you take the doc at face value and do$(date:yyyyMMdd).$(rev:.r):20181025..1.(I think it would be difficult to document that
.isn't required without clearing up what I'm seeing, so just leaving a comment here. 😄)