如何防止 TeamCity 为预先测试的提交创建工件?

发布于 2024-08-06 19:29:29 字数 127 浏览 5 评论 0原文

现在,每次我成功进行预测试提交时,TeamCity 都会创建 2 组工件,其中一组是在使用我的本地更改构建解决方案以运行测试时创建的,第二组是在由 VCS 存储库触发时创建的改变。

如何防止它在提交之前为其构建测试创建工件?

Right now, TeamCity is creating 2 sets of artifacts each time I do a successful pre-tested commit, one when it builds the solution with my local changes against which to run the tests, and a second time when it gets triggered by the VCS repository change.

How can I prevent it from creating artifacts for its build-to-test before commit?

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

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

发布评论

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

评论(2

夜司空 2024-08-13 19:29:29

检查要定义的 build.is.personal 系统属性或 BUILD_IS_PERSONAL 环境变量。

Check build.is.personal system property or BUILD_IS_PERSONAL environment variable to be defined.

寂寞花火° 2024-08-13 19:29:29

对 VCS 触发的构建使用不同的构建配置,该配置没有配置任何用于保存工件的路径。

  • 转到管理页面并复制现有的构建配置。
  • 原始配置的“构建触发”下,禁用“在文件检入 VCS 时启用触发”
  • 副本的“常规设置”下,从 Artifact 中删除所有内容路径

Use a different build configuration for the VCS triggered build, one that doesn't have any paths configured for saving Artifacts.

  • Go to the Administration page and copy the existing build configuration.
  • Under "Build Triggering" on the original configuration, disable "Enable Triggering when files are checked into VCS"
  • Under "General Settings" on the copy remove everything from Artifact Paths
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文