zoukankan      html  css  js  c++  java
  • TF42064: The build number already exists for build definition error in TFS2010

    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 will see that new builds starts with same number (Build_20110423.1 or 1.0.0.1) but not with an incremental number (Build_20110423.2 or 1.0.0.2). But, it doesn’t work the same way in TFS2010.

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

    buildnumber1

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

    buildnumber2

    Triggered the Build again but it got failed with error TF42064: The build number ‘1.0.14.0’ already exists for build definitionSmile.

    buildnumber3

    This is because in TFS2010 when you delete the builds, it only gets marked as deleted in the database so that it doesn’t show up in the UI anymore. To get rid of this build completely you actually have 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:WINDOWSsystem32>tfsbuild destroy /collection:http://TFSServer:8080/tfs/defaultcollection /builddefinition:"TeamProjectBuildDefinitionName" 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.

    buildnumber5

  • 相关阅读:
    使用MingGW-w64 Build Script 3.6.7搭建ffmpeg编译环境
    ffmpeg精简编译
    CListCtrl死锁的问题
    VC程序禁用提示框
    rtmp协议分析
    [置顶] zabbix发送告警
    [置顶] 个人微信号发送zabbix告警信息
    [置顶] 一个简单好用的zabbix告警信息发送工具
    [置顶] zabbix告警信息-lykchat信息发送系统
    模拟登陆web微信的流程和参数细节
  • 原文地址:https://www.cnblogs.com/fromchaos/p/4176903.html
Copyright © 2011-2022 走看看