2017-06-22 64 views
1

我有一台安装了CruiseControl.NET 1.8.5.0的Win Server 2016的机器。 安装期间没有错误。CruiseControl.NET无法找到TF.exe,它没有在可执行文件中定义参数

这是我使用的项目配置:

<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. 

任何想法如何解决这一问题?

回答

1

它默认不找到它,这是真的, 但CCValidator指出,添加可执行元素将修复它。 增加下面的源控制框元素:

C:\ Program Files文件(x86)的\微软的Visual Studio 14.0 \ Common7 \ IDE \ tf.exe

比它会工作

+0

是。它与 C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ TF.exe Angela

相关问题