gpt4 book ai didi

powershell - 巡航控制和 Powershell

转载 作者:行者123 更新时间:2023-12-02 23:05:20 24 4
gpt4 key购买 nike

这是我第一次使用 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 开始支持。我只是不太确定,该怎么做:/

最佳答案

这是在 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>

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

关于powershell - 巡航控制和 Powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12641057/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com