Tf42064:the build number already exists for build definition error in TFS2010

Source: Internet
Author: User

In TFS2008, deleting a build removes it from the database itself. If you delete a build called build_20110423.1 or 1.0.0.1 from build Explorer and trigger the build again then you'll see That new builds starts with same number (build_20110423.1 or 1.0.0.1) and not with an incremental number (build_20110423. 2 or 1.0.0.2). But, it doesn ' t work the same-in TFS2010.

I queued a build in TFS2010 which got failed with build number 1.0.14.0 due to compilation errors.

I wanted to reuse the same build number. So, I has deleted the build from build Explorer by checking all the available options.

Triggered the build again but it got failed with error tf42064:the Build number ' 1.0.14.0 ' already exists for Build Defin Ition.

This was because in TFS2010 if you delete the builds, it's only gets marked as deleted in the database so that it doesn ' t s How up in the UI anymore. To get rid of the This build completely actually has to Destroy it using tfsbuild Destroy Command which is added in TFS2010.

Open the Visual Studio command Prompt and you can run the tfsbuild destroy command in below mentioned syntax.

c:\windows\system32>TFSBuild destroy/collection:http://tfsserver:8080/tfs/defaultcollection/ Builddefinition: "Teamproject\builddefinitionname" BuildNumber 1.0.14.0

No builds found for build specification ' BuildNumber '.
Destroy build record for 1.0.14.0 permanently? (Yes/no/all) Yes
Destroying 1.0.14.0 ... Done

I queued the build again and now the build succeeded with 1.0.14.0 build number.

Tf42064:the build number already exists for build definition error in TFS2010

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.