我可以访问 CruiseControl.net 构建标签吗?
有什么方法可以访问 CruiseControl.NET 的构建标签号吗? (也许通过使用批处理文件。)基本上,我想检索值“LastSuccessfulIntegrationLabel
”并在构建之前在批处理文件中使用。
Is there any way I can have access to the CruiseControl.NET's build label number? (Maybe by using a batch file.) Basically, I want to retrieve the value "LastSuccessfulIntegrationLabel
" and use in a batch file before building.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不能在批处理脚本中简单地使用 CCNetLabel 环境变量吗(请参阅 http://confluence.public.thoughtworks.org/display/CCNET/Executable+Task,在底部)?
如果您在构建之前需要它,可以将批处理设置为作为
任务运行:http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+BlockCan't you simply use the CCNetLabel environment variable in your batch script (see http://confluence.public.thoughtworks.org/display/CCNET/Executable+Task, at the bottom)?
If you need it before the build, you can set your batch to run as a
<prebuild>
task: http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block确保它在状态文件中。 这是我在 PowerShell 中执行此操作的方法
sure it is in the state file. Here is how I do it in PowerShell