CruiseControl.NET无法找到TF.exe,并且未在可执行参数

时间:2017-06-22 08:21:37

标签: tfs msbuild cruisecontrol.net ccnet-config

我有一台安装了Win Server 2016的机器,我安装了CruiseControl.NET 1.8.5.0。 安装过程中没有错误。

这是我正在使用的项目配置:

  <project name="Mainbranch_Deploy" description="Mainbranch, deploy the latest version">
    <triggers />
    <sourcecontrol type="vsts" autoGetSource="true" applyLabel="false">
      <server>http://tfs.hac.net:8080/tfs/defaultcollection</server>
      <username>builder</username>
      <password>XXX</password>
      <domain>hac</domain>
      <project>$/Hac.Services/Hac.Services.UserDirectory/MainBranch</project>
      <workspace>MainBranch_Deploy</workspace>
      <workingDirectory>D:\Builds\MainBranch_Deploy</workingDirectory>
      <cleanCopy>false</cleanCopy>
      <deleteWorkspace>false</deleteWorkspace>
    </sourcecontrol>
    <state type="state" />
    <tasks>
      <msbuild>
        <workingDirectory>D:\Builds\MainBranch_Deploy\Hac.Services.UserDirectory\CC.NET VUDComplete</workingDirectory>
        <executable>C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe</executable>
        <projectFile>TFSBuild.proj</projectFile>
        <buildArgs>/tv:14.0 /property:BuildType=%CCNetRequestSource% /p:Configuration=Release /v:n</buildArgs>
        <targets>DeployVersion</targets>
        <timeout>6000</timeout>        
        <environment>
          <variable name="ArtifactsFolder" value = "CI" />
        </environment>
      </msbuild>
    </tasks>
    <publishers>
      <xmllogger />
      <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
    </publishers>
  </project>

当我尝试在CCValidator.exe中加载ccnet.config文件时,收到以下错误: CruiseControl.NET无法找到TF.exe,并且未在可执行参数中定义

我已将此添加到PATH C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE中,因此不确定我缺少什么。

当我运行服务器时,这是我得到的输入:

C:\Program Files (x86)\CruiseControl.NET\server>ccnet.exe
CruiseControl.NET Server 1.8.5.0 -- .NET Continuous Integration Server
Copyright c 2003 - 2014 ThoughtWorks Inc.  All Rights Reserved.
.NET Runtime Version: 2.0.50727.8745    Image Runtime Version: v2.0.50727
OS Version: Microsoft Windows NT 6.2.9200.0     Server locale: en-US

[1:DEBUG] The trace level is currently set to debug.  This will cause CCNet to log at the most verbose level, which is useful for setting up or debugging the server.  Once your server is running smoothly, we recommend changing this setting in C:\Program Files (x86)\CruiseControl.NET\server\ccnet.exe.Config to a lower level.
[1:WARN] ! ! Tracing is enabled ! !It allows you to sent the developpers of CCNet very detailed information of the program flow. This setting should only be enabled if you want to report a bug with the extra information. When bug reporting is done, it is advised to set the trace setting off. Adjust the setting in C:\Program Files (x86)\CruiseControl.NET\server\ccnet.exe.Config
[1:DEBUG] [FileChangedWatcher] Add config file 'ccnet.config' to file change watcher collection.
[CCNet Server:INFO] Reading configuration file "C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config"
[CCNet Server:DEBUG] [FileChangedWatcher] Add config file 'C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config' to file change watcher collection.
[CCNet Server:WARN] Configuration does not have any version information - assuming the configuration is for version 1.8
[CCNet Server:INFO] Log cache time set to 5 minutes
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseManager: Listening on url: tcp://10.3.3.136:21234/CruiseManager.rem
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseServerClient: Listening on url: tcp://10.3.3.136:21234/CruiseServerClient.rem
[CCNet Server:INFO] Starting CruiseControl.NET Server
[CCNet Server:INFO] Initialising security
[Mainbranch_Deploy:INFO] Starting integrator for project: Mainbranch_Deploy
[8:INFO] Disconnecting remote server:
[8:INFO] Unregistering channel: tcp
[8:INFO] Aborting CruiseControl.NET Server
[8:INFO] Aborting integrator for project: Mainbranch_Deploy
[8:INFO] WaitForExit requested for non stopping project 'Mainbranch_Deploy' - stopping project
[8:INFO] Stopping integrator for project: Mainbranch_Deploy
[Mainbranch_Deploy:INFO] Integrator for project: Mainbranch_Deploy is now stopped.

知道如何解决这个问题吗?

2 个答案:

答案 0 :(得分:1)

默认情况下找不到它,这是真的, 但正如CCValidator所指出的,添加可执行元素将解决它。 在源控件块中添加以下元素:

C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ tf.exe

比它起作用

答案 1 :(得分:0)