如果由于某种原因未产生APK工件,是否可以使Gradle Build失败?

发布于 2025-02-12 08:14:23 字数 214 浏览 1 评论 0原文

实际上,我正在将Gradle与Bamboo一起进行连续部署,并且我注意到,通过编辑,当Bamboo构建我的应用程序时,它不会在Bamboo上构建.apk文物。然而,构建已成功完成。

我的问题是,如果未产生工件,我将使Gradle Build失败。

这是我可以在Gradle配置内做的事情还是我必须在竹子上处理的事情?

让我知道您是否需要进一步的信息。

多谢!

Actually I'm using Gradle with Bamboo for Continuous Deployment and I've noticed that, with an edit I've done, when Bamboo builds my application, it doesn't build the .apk artifacts on Bamboo. Nevertheless, the build is done successfully.

My questions is that I would make the Gradle build fail if artifacts are not generated.

Is it a thing I can make inside the Gradle configuration or is it a thing I have to handle on Bamboo?

Let me know if you need further informations.

Thanks a lot!

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

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

发布评论

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

评论(1

聊慰 2025-02-19 08:14:23

添加a 需要伪像到您的计划。指定您期望生成的APK文件的确切位置。如果竹计划构建在那里找不到它们,将会失败。

Add a required artifact to your plan. Specify the exact location where you expect the generated apk files. The Bamboo plan build will fail if it doesn't find them there.

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