You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Emmanuel Venisse <em...@venisse.net> on 2005/11/01 16:36:50 UTC

Re: Continuum not recognizing maven exit code

It's a know bug, but we don't have issue for it. Can you filed an issue?

Emmanuel

Barrow, Zach a écrit :
> I've tried both:
> exit /B errorlevel and
> exit /B %errorlevel%
> 
> The bottom of my maven build result is as such:
> ...
> java:jar-resources:
> Copying 12 files to
> c:\apps\continuum-1.0\apps\continuum\working-directory\62\core\target\cl
> asses
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
> 
> test:test:
>     [junit] Running com.sys.test.RouterCRUDTest
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.05 sec
>     [junit] [ERROR] TEST com.sys.test.RouterCRUDTest FAILED
> 
> BUILD FAILED
> File......
> c:\cygwin\home\zbarrow\.maven\cache\maven-multiproject-plugin-1.3.1\plug
> in.jelly
> Element... maven:reactor
> Line...... 217
> Column.... 9
> Unable to obtain goal [multiproject:install-callback] --
> c:\cygwin\home\zbarrow\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly
> :181:54:  There were test failures.
> INFO  [App] Total time: 1 minutes 30 seconds
> INFO  [App] Finished at: Mon Oct 31 09:03:52 PST 2005
> INFO  [App] 
> 
> In neither instance do I get a Continuum build failure. 
> 
> -----Original Message-----
> From: Barrow, Zach 
> Sent: Friday, October 28, 2005 4:59 PM
> To: 'continuum-users@maven.apache.org'
> Subject: Continuum not recognizing maven exit code
> 
> I've read up on the site and added exit /B %ERRORLEVEL% to my maven.bat
> file (although the documentation says exit /B errorlevel), and have even
> echoed the result to see what error code is getting returned, and it
> should be returning 70 to Continuum.  However, Continuum is still giving
> a build successful result.  Any ideas?  Here's my environment:
> 
> Windows XP SP2
> Java 1.5
> Maven version 1.0.2
> Continuum version 1.0
> 
> edited maven.bat
> ------------------------
> ...
> @REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
> if "%MAVEN_BATCH_PAUSE%" == "on" pause
> exit /B %ERRORLEVEL%
> ------------------------
> 
> Continuum wrapper.log
> ------------------------
> ...
> INFO   | jvm 2    | 2005/10/28 16:48:50 | 2005-10-28 16:48:50,883
> [Thread-1] INFO  Action:update-project-from-working-directory - Updating
> project 'commplanner' from checkout.
> INFO   | jvm 2    | 2005/10/28 16:48:51 | 2005-10-28 16:48:51,213
> [Thread-1] WARN  ContinuumBuildExecutor:maven-1 - Executable
> 'c:\apps\Maven-1.0\bin\maven'.
> INFO   | jvm 2    | 2005/10/28 16:48:51 | 2005-10-28 16:48:51,213
> [Thread-1] INFO  ContinuumBuildExecutor:maven-1 - Arguments: -o
> -Duser.home=c:/cygwin/home/zbarrow clean:clean multiproject:install
> INFO   | jvm 2    | 2005/10/28 16:48:51 | 2005-10-28 16:48:51,213
> [Thread-1] INFO  ContinuumBuildExecutor:maven-1 - Working directory:
> c:\apps\continuum-1.0\bin\win32\..\..\apps\continuum\working-directory\6
> 2
> INFO   | jvm 2    | 2005/10/28 16:49:56 | 2005-10-28 16:49:56,558
> [Thread-1] INFO  ContinuumBuildExecutor:maven-1 - Exit code: 0
> INFO   | jvm 2    | 2005/10/28 16:49:57 | 2005-10-28 16:49:57,049
> [Thread-1] INFO  Notifier:mail                  - Current build state:
> 2, previous build state: 2
> INFO   | jvm 2    | 2005/10/28 16:49:57 | 2005-10-28 16:49:57,049
> [Thread-1] INFO  Notifier:mail                  - Same state, not
> sending mail.
> INFO   | jvm 2    | 2005/10/28 16:50:25 | 2005-10-28 16:50:25,120
> [SocketListener0-1] ERROR VelocityComponent              - RHS of #set
> statement is null. Context will not be modified. screens/ProjectBuild.vm
> [line 73, column 3]
> ------------------------
> 
> I notice in the log that ContinuumBuildExecutor returns Exit code: 0,
> even though maven is returning exit code 70 for my build.
> 
> Thanks for any help,
> Zach
> 
> 
>