本文介绍了我可以参数化一个CruiseControl.NET项目配置,使参数暴露的Web接口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图使用​​NAnt和CruiseControl.NET来管理我的软件开发的各个方面。目前,NAnt基于我在命令行上指定的输入目标来处理所有事情,包括替换环境特定设置(例如,数据库连接字符串)。



CruiseControl.NET用于在提交新代码时随时构建默认环境(dev)的应用程序。我还希望CruiseControl.NET为我的附加环境测试和阶段调用一个构建,但是我不希望在每次调用开发版本时自动调用这些构建,因为测试和阶段部署的频率要低得多。测试和阶段部署只在应用程序准备好进行质量检查时才会发生。



我可以通过指定多个项目(每个环境一个)来轻松实现。但是,我已经配置了许多项目,每个里程碑在我的应用程序中。如果我必须为每个里程碑设置3个项目,CruiseControl.NET配置可能会很快失控。



这里是我的问题:
我可以参数化一个CruiseControl.NET项目配置,使参数通过Web界面公开吗?



在web界面中公开的每个环境(例如,dev,test,stage)的复选框。将对检查的每个环境进行构建,无论构建是强制的还是自动的。不幸的是,你不能做任何事情,因为你不能做任何事情。像CruiseControl.NET。这是一个好主意,因此您可能需要将其作为功能请求提交。


I am currently trying to use NAnt and CruiseControl.NET to manage various aspects of my software development. Currently, NAnt handles just about everything, including replacing environment specific settings (e.g., database connection strings) based on an input target that I specify on the command line.

CruiseControl.NET is used to build the application for the default environment (dev) anytime new code is committed. I also want CruiseControl.NET to invoke a build for my additional environments test and stage, but I do not want these to be automatically invoked every time that a dev build invoked (daily) as test and stage deployments happen far less frequently. Test and stage deployments only occur when the application is ready for QA.

I can easily do this by specifying multiple projects, one for each environment. However, I already have many projects configured, one for each milestone in within my application. If I have to setup 3 projects for each milestone the CruiseControl.NET configuration can get out of hand quickly.

Here is my question:Can I parameterize a CruiseControl.NET project configuration such that the parameters are exposed by the web interface?

Preferably (I think), I could have checkboxes for each environment (e.g., dev, test, stage) exposed in the web interface. A build would be made for each environment that is checked, whether the build was forced or automatic. It would be even better if I could default the checked state.

解决方案

Unfortunately, you can't do anything like that with CruiseControl.NET. It's a good idea, so you might want to submit it as a feature request.

这篇关于我可以参数化一个CruiseControl.NET项目配置,使参数暴露的Web接口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 23:02