哈德森 - 针对不同的触发不同的构建目标 [英] Hudson - different build targets for different triggers

查看:117
本文介绍了哈德森 - 针对不同的触发不同的构建目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有不同的构建目标,定期建立和那些通过轮询SCM触发。

I would like to have different build targets for periodic builds and for those that are triggered by polling SCM.

具体一点:这个想法是,每晚构建应该叫'MVN验证,其中包括集成测试,而普通版本所称的MVN测试,​​只是执行单元测试

More specific: The idea is that nightly builds should call 'mvn verify' which includes integration tests, while a normal build calls 'mvn test' that just executes Unit tests.

任何想法如何这可以使用哈德森实现?

Any ideas how this can be achieved using Hudson?

干杯
克里斯

推荐答案

您可以创建两个职位 - 一个计划和其他调查。
在计划,您可以指定从不同的Maven目标的查询。

You could create two jobs - one scheduled and the other polled. In the scheduled you can specify a different maven goal from the polled.

这篇关于哈德森 - 针对不同的触发不同的构建目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆