可以说我有一个名为R的根项目。它具有模块A,B,C和D作为子模块,但每个模块都是一个应用程序。
每当我使用teamcity / maven并出现错误时,都会跳过其他模块,无论其是否为编译/测试。
所以, 每当编译时都会显示
R................SUCCESS
A................SUCCESS
B................FAILURE
C................SKIPPED
D................SKIPPED
我想同时在C和D中看到结果。如何使用teamcity / maven实现这一目标。有参数吗?
答案 0 :(得分:1)
必须谨慎使用此选项,但它很有用。无论项目结果如何,构建都不会失败。所有失败都将被忽略,构建将继续。在您的项目中:
mvn clean install --fail-never (or just --fn)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Module A .............................................. SUCCESS [2.583s]
[INFO] Module B .............................................. SUCCESS [0.086s]
[INFO] Module C .............................................. FAILED [1.598s]
[INFO] Module D .............................................. SUCCESS [0.051s]
[INFO] Reactor ............................................... SUCCESS [0.921s]
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Module C (during install)
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to /Users/clement/workspaces/experiments/Project/module-C/target/surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] + Ignoring failures
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun May 09 10:43:41 CEST 2010
[INFO] Final Memory: 31M/79M
[INFO] ------------------------------------------------------------------------
模块C失败,未跳过D,并且全局构建成功。
之后,您可以在Teamcity中添加build failure condition来检查结果,如果发现任何错误,则构建失败
答案 1 :(得分:1)
如果您使用<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table>
<tr>
<th>Front Row</th>
<td><span class="se-curency">$ </span>5</td>
<td>
<input min="0" data-name="Front Row" data-unit-price="5" class="se-ticket-qty" type="number" value="0" />
</td>
</tr>
<tr>
<th>VIP Seat</th>
<td><span class="se-curency">$ </span>10</td>
<td>
<input min="0" data-name="VIP Seat" data-unit-price="10" class="se-ticket-qty" type="number" value="0" />
</td>
</tr>
</table>
,则所有模块都将通过,但是失败将仅在构建结束时显示。