如何使用 CCNet 进行间隔力构建

发布于 2024-10-19 01:13:44 字数 165 浏览 5 评论 0原文

在我们的 CCNet 上,有一个构建(称为发布),可以构建应用程序的完整包,然后将 msi 复制到客户端的 FTP 服务器上。

该项目没有触发器,应通过 CCtray 或仪表板手动启动。

是否可以手动强制项目但该项目确实在固定时间(如 01:00:00)开始?

谢谢,

On our CCNet, there is a build (called release) that build the full package of the application and then copy the msi on a FTP server for the client.

There are no trigger on that project and it should be manually launched via CCtray or dashboard.

Is it possible to manually force the project but that the project really start on a fixed time (like 01:00:00) ?

thx,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

岁月流歌 2024-10-26 01:13:44

只需使用 scheduleTrigger 标签即可。

<scheduleTrigger time="01:00" buildCondition="ForceBuild" name="Scheduled">
  <weekDays>
    <weekDay>Monday</weekDay>
  </weekDays>
</scheduleTrigger>

您甚至可以使用 weekDays 标记指定一周中的哪一天。

Simply use the scheduleTrigger tag.

<scheduleTrigger time="01:00" buildCondition="ForceBuild" name="Scheduled">
  <weekDays>
    <weekDay>Monday</weekDay>
  </weekDays>
</scheduleTrigger>

You can even specify which day in the week with the weekDays tag.

总以为 2024-10-26 01:13:44

您可以按照 TridenT 的建议为您的项目设置触发器。然后您将创建另一个只能手动触发的项目。第二个项目将用于收集您需要的动态参数并将它们存储到文件中。

在原始项目中,您将在开头添加一个条件任务来检查该文件是否存在。仅当文件存在时才开始构建并使用其中的值。最后,您将删除该文件,以便它不会在第二天再次触发构建。

它有点复杂,但它确实是我想到的实现所需功能的唯一解决方案。

You could set up the trigger for your project as TridenT already suggested. Then you would create another project that could only be triggered manually. This second project would be used to collect the dynamic parameters that you need and store them into a file.

In the original project you would add a conditional task at the beginning to check for the existance of that file. You would only start the build if the file existed and use the values from it. At the end you'd delete the file so that it wouldn't trigger the build again the next day.

It is a bit convoluted but it's really the only solution that comes to my mind to achieve the required functionality.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文