阻止在 TeamCity 上远程运行?

发布于 2024-08-21 04:05:40 字数 71 浏览 2 评论 0原文

有没有办法配置 TeamCity 构建以禁止远程运行?我想配置一个部署快照的 Maven 构建,但我不想允许在该配置上远程运行。

Is there a way to configure a TeamCity build to forbid remote runs? I want to configure a maven build that deploys a snapshot but I don't want to allow remote runs on that configuration.

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

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

发布评论

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

评论(1

满栀 2024-08-28 04:05:40

我找到了一种解决方法,可以防止从远程运行部署 jar。

<properties>
    <!-- this setting is needed for TeamCity -->
    <maven.deploy.skip>${build.is.personal}</maven.deploy.skip>
</properties>

如果有办法的话,我仍然宁愿完全禁止远程运行。运行“部署”配置是很浪费的,而且我还想禁止其他配置。

I found a work-around that lets me prevent deploying jars from a remote run.

<properties>
    <!-- this setting is needed for TeamCity -->
    <maven.deploy.skip>${build.is.personal}</maven.deploy.skip>
</properties>

I would still prefer to forbid the remote run entirely if there is a way. It's wasteful to run the "deploy" configuration and there are other configurations I'd like to forbid as well.

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