Continuous integration 我可以访问CruiseControl.net构建标签吗?

Continuous integration 我可以访问CruiseControl.net构建标签吗?,continuous-integration,cruisecontrol.net,Continuous Integration,Cruisecontrol.net,我有没有办法访问CruiseControl.NET的构建标签号?(可能通过使用批处理文件。)基本上,我希望检索值“lastsucessfullintegrationlabel”,并在生成前在批处理文件中使用。确保它位于状态文件中。下面是我在PowerShell中的操作方法 $xml = [xml](gc $statefile) [string]$buildnum =$xml.IntegrationResult.Label 您不能在批处理脚本中简单地使用CCNetLabel环境变量吗(请参见底

我有没有办法访问CruiseControl.NET的构建标签号?(可能通过使用批处理文件。)基本上,我希望检索值“
lastsucessfullintegrationlabel
”,并在生成前在批处理文件中使用。

确保它位于状态文件中。下面是我在PowerShell中的操作方法

$xml = [xml](gc $statefile)

[string]$buildnum =$xml.IntegrationResult.Label

您不能在批处理脚本中简单地使用CCNetLabel环境变量吗(请参见底部)


如果在构建之前需要它,可以将批处理设置为作为任务运行:

实际上,状态只是返回成功/失败,而不是OP要求的标签,因为您认为它是指CCNetLabel,环境变量