我想将不同的 svn 修订号传递给 Cruisecontrol,以便它可以为所有提供的修订号创建不同的构建。我尝试使用巡航控制 API 进行强制构建
const string ipAddressOrHostNameOfCcServer = "localhost";
using (var client = new CruiseServerHttpClient(
string.Format("http://{0}/ccnet/", ipAddressOrHostNameOfCcServer)))
{
var request = new IntegrationRequest(
BuildCondition.ForceBuild, LocalPath, "dipakm");
request.BuildValues.Add("VersionToBuild", "167");
client.Request("MyFirstProject", request);
}
但参数在 ccnet.config 中不可用
<cb:scope ProjectName="MyFirstProject">
<project name="$(ProjectName)"
description="demoproject showing a small config">
<parameters>
<textParameter name="VersionToBuild">
<display>SVN Version to Build</display>
<description>Which SVN version to Build?</description>
<default>HEAD</default>
<required>true</required>
</textParameter>
</parameters>