巡航控制和Powershell

Sim*_*s0n 2 powershell cruisecontrol

这是我第一次使用Cruise Control,所以也许我没理解它.我想启动一个大型PowerShell脚本,它构建一些VM镜像.如果我能通过巡航控制来看看它真的很酷.我已经谷歌搜索了这些东西,我发现了这样的东西:http://qaquestions.wordpress.com/2011/03/18/cruisecontrol-net-powershell-tasks/ 但现在:我究竟在哪里放这些xml语句?我想,我必须在CC config.xml中创建一个新的项目标签,并指定脚本和位置.但是,当我开始排队时,它表示,powershell是一个未知的插件,但我有CC 2.5+,PS应该支持1.5.我不太确定,做什么:/

Mat*_*ker 5

这是在Cruise Control .NET中运行powershell任务所必需的绝对最小项目定义.我认为它可能在Cruise Control中非常相似.

<project name="Run some powershell scripts">
    <tasks>
        <powershell>
            <scriptsDirectory>path to scripts folder</scriptsDirectory>
            <script>script to run</script>
        </powershell>
    </tasks>
</project>
Run Code Online (Sandbox Code Playgroud)

将此项目定义放在配置文件中(适用于Cruise Control .NET的ccnet.config)