TFS 2015 vNext force build number

2019-05-30 19:05发布

问题:

Back in TFS 2013 you could temporarily hardcode a build number and then switch back to auto increment to skip ahead with build numbers. Now with TFS 2015 vNext, it seems like I can no longer do this. I went to make a new build definition and wanted to carry on from the last build number from my XAML build but it wouldn't move up.

Any ideas or workarounds for this?

回答1:

It's also supported. Please check this link for detail steps:Generate custom build numbers in TFS Build vNext


update

Unfortunately, it's impossible.$(Rev:.rr) Its start by one.

What is $(Rev:.rr)?

To ensure that every completed build has a unique name. When a build is completed, if nothing else in the build number has changed, the Rev integer value is incremented by one.

Source:MSDN



标签: tfs tfs2015