聚合资讯    词典    My blog    Tag   
hi! | 关于
专注于Java技术、开源项目、项目管理

标签 - 分类 : 全部 | UNIX | 随笔 | 数据库 | Java技术 | 网摘文章

这是来自Apache Mavan ContinuumCoutinuum Faq的一段,主要是说明如何配置CI持续集成服务器如何发现失败/成功的Build:

Why Maven doesn't detect my failed builds?
mvn.bat distributed with Maven 2.0.7 doesn't set correctly the exit code. The fixed version is available here.


--------------------------------------------------------------------------------

How does Continuum detect a successful build with ANT?
Continuum uses the command line return code for detecting a successful or failed execution.

If you use ant, you need to add the following lines at the end of ant.bat :

if "%MAVEN_TERMINATE_CMD%" == "on" exit %ANT_ERROR%

exit /B %ANT_ERROR%
       If your bat file contains an exit /B at the end, this line must be inserted before it.

The code above is for ANT 1.7, you can download fixed scripts for older ANT here.


--------------------------------------------------------------------------------

How does Continuum detect a successful build with a SHELL script?
Continuum uses the command line return code for detecting a successful or failed execution.

You need to add the following lines at the end of script :

if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
       If your bat file contains an exit /B at the end, this line must be inserted before it.

 

 
标签 :




置评

标题
正文
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
姓名
电邮地址
网站
记住我 是  否 

电邮地址将不会发表在公开网页上,您留下的电邮地址仅用于本文有新评论时通知您(以后可以随时拿掉).

回接到 http://www.searchfull.net:80/blog/addTrackBack.action?entry=1199935136299