部署完成后Hudson Maven测试

发布于 2024-12-29 19:18:03 字数 199 浏览 2 评论 0原文

我已将 Hudson 配置为持续集成。在我的 Maven 工作中,我定义了“将 war/ear 部署到容器”选项和“M2 Extra Build Steps -post”。在“M2 Extra Build Steps -post”中,我定义了运行测试用例。但在部署之前,完整的 Maven 测试将运行。

有没有办法在部署完成后配置运行测试用例?

谢谢。

I have configured Hudson for continuous integration. in my Maven job I have define "Deploy war/ear to a container " option and " M2 Extra Build Steps -post". in "M2 Extra Build Steps -post" I have define run to test case. But before deployment complete maven test will run.

Is there any way to configure run the test cases after deployment completed?

Thank you.

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

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

发布评论

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

评论(1

憧憬巴黎街头的黎明 2025-01-05 19:18:03

在 MAVEN_OPTS 中添加参数 -Dmaven.test.skip=true 或 -DskipTests=true (这是 Jenkins 单击“高级”按钮时出现的),具体取决于您是要跳过测试编译和执行还是仅执行。

Add the parameter -Dmaven.test.skip=true or -DskipTests=true in MAVEN_OPTS (this is present Jenkins clicking the Advanced button), depending on whether you want to skip test compilation and execution or only execution.

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