gpt4 book ai didi

收到 CruiseControl.NET 进程退出事件,构建结果出错

转载 作者:行者123 更新时间:2023-12-04 08:44:31 25 4
gpt4 key购买 nike

类似于 Using CruiseControl.NET and MSBuild to publish a website

我遇到了这样一种情况,即 ccnet.config 中的 MSBuild 任务似乎确实有效,但最终该过程以

standard-output stream closed -- null received in event
standard-error stream closed -- null received in event
process exited event received

从命令行运行时,一切都很好。

我查看了我能想到的所有日志文件,但我很难过,我已经在这方面投入了很多时间。请帮忙!

2013 年 11 月更新:根据这里的要求,摘录自 CCNET.CONFIG
        <msbuild>
<executable>$(msBuildExe)</executable>
<projectFile>"src\Solutions\Apprentice - Core Tests - VS11.sln"</projectFile>
<buildArgs>/noconsolelogger /p:Configuration="$(msbuildConfig)" /v:diag</buildArgs>
<logger>$(ccnet)\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
<environment>
<!-- allow NuGet to auto restore packages -->
<variable>
<name>EnableNuGetPackageRestore</name>
<value>true</value>
</variable>
</environment>
</msbuild>


    <cb:define msBuildExe="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe" />
<cb:define msbuildConfig="Debug - No MSEL" />

在顶部,除其他外

最佳答案

在您链接的答案中,您是否注意到 msbuild 块中的超时?我敢打赌你的要么使用默认超时,要么不够高。我建议提高它或为您的 msbuild 块添加一个高值。

您提到的错误与使用 c# 中的进程类的进程超时非常相似。

<timeout>900</timeout>

根据 http://www.cruisecontrolnet.org/projects/ccnet/wiki/MsBuild_Task默认超时为 600 秒或 10 分钟。

关于收到 CruiseControl.NET 进程退出事件,构建结果出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19644194/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com