我觉得自己真的很傻。我已经为我们的构建设置了cruisecontrol.net。如果我从命令行运行它,它工作得很好: ccnet.exe -p=TestLib
但是,如果我将CCNET作为服务器运行,或者从start/programs运行它,它完全不会执行任何操作。我期望下面的脚本每10分钟构建一次.
我做错了什么?
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<!-- This is your CruiseControl.NET Server Configuration file. Add your projects below! -->
<project name="TestLib">
<triggers>
<intervalTrigger seconds="600" buildCondition="ForceBuild"/>
</triggers>
<sourcecontrol type="svn" autoGetSource="true">
<trunkUrl>xxxx://xxxxxxxxxxx/svn/testlib/trunk</trunkUrl>
<workingDirectory>c:\Projects\TestLib</workingDirectory>
<executable>C:\Program Files\Subversion\bin\svn.exe</executable>
<username>xxxxxxx</username>
<password>xxxxxxx</password>
<timeout units="minutes">5</timeout>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable>
<workingDirectory>c:\Projects\TestLib</workingDirectory>
<projectFile>TestLib.sln</projectFile>
<buildArgs>/noconsolelogger /p:Configuration=Release;Platform=x86 /v:diag</buildArgs>
<targets>Clean,Build</targets>
<timeout>600</timeout>
<logger>ThoughtWorks.CruiseControl.MsBuild.XmlLogger,C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<exec>
<executable>copyfiles_testlib.bat</executable>
<baseDirectory>C:\Projects</baseDirectory>
<buildArgs></buildArgs>
<buildTimeoutSeconds>60</buildTimeoutSeconds>
</exec>
</tasks>
<publishers>
<statistics />
<xmllogger />
</publishers>
</project>
发布于 2011-09-21 12:37:55
登录CCNET的web管理中心,如-
http://localhost/ccnet/ViewFarmReport.aspx
检查包含特定项目的行的最后一列Admin是否有一个标题为- Stop的按钮。
如果显示的是Start,那么您需要单击它,以便考虑构建该项目,并且单击Start也会将其切换为停止。
基本上,此步骤称为启动项目的集成器。
Abhy N
发布于 2010-06-24 06:01:07
你确定它不工作吗?因为如果您查看文档中的-p参数,它会显示:
“有时调试特定项目很有用。如果使用此选项,CruiseControl.NET将只启动指定的项目,在其上强制生成,然后关闭服务器。”
所以..。如果您不使用该参数,它将在构建项目之前等待10分钟,因为这是您设置的时间间隔。
我想你的意思是你把它作为一个服务来运行?
如果你能删除所有的.log文件...启动服务,然后查看日志。如果你仍然不确定哪里出了问题,就把它贴在这里。
发布于 2010-09-12 02:17:59
我遇到了和Enrico完全相同的问题:
在命令行中,如果我使用-p运行项目以强制构建,则构建将成功完成。
当我双击桌面上的CCNET图标(在安装时放在那里)时,构建过程似乎开始了,然后突然停止了,没有明显的原因。
CruiseControl.NET Server 1.5.7256.1 -- .NET Continuous Integration Server
Copyright c 2003 - 2010 ThoughtWorks Inc. All Rights Reserved.
.NET Runtime Version: 2.0.50727.3053 Image Runtime Version: v2.0.50727
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3 Server locale: en-CA
[1:DEBUG] The trace level is currently set to debug. This will cause CCNet to log at the most verbose level, which is u
seful for setting up or debugging the server. Once your server is running smoothly, we recommend changing this setting
in C:\Program Files\CruiseControl.NET\server\ccnet.exe.Config to a lower level.
[1:DEBUG] [FileChangedWatcher] Add config file 'ccnet.config' to file change watcher collection.
[CCNet Server:INFO] Reading configuration file "C:\Program Files\CruiseControl.NET\server\ccnet.config"
[CCNet Server:DEBUG] [FileChangedWatcher] Add config file 'C:\Program Files\CruiseControl.NET\server\ccnet.config' to fi
le change watcher collection.
[CCNet Server:WARN] Configuration does not have any version information - assuming the configuration is for version 1.5
[CCNet Server:INFO] Log cache time set to 5 minutes
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseManager: Listening on url: tcp://192.168.1.52:21234/CruiseManager.rem
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseServerClient: Listening on url: tcp://192.168.1.52:21234/CruiseServerClient.rem
[CCNet Server:INFO] Starting CruiseControl.NET Server
[CCNet Server:INFO] Initialising security
[CCNet Server:INFO] Starting extensionshttps://stackoverflow.com/questions/3069809
复制相似问题