-
Type:
Bug
-
Resolution: Fixed
-
Priority:
High
-
Affects Version/s: 1.1
-
Component/s: None
-
None
-
Environment:
Bamboo 1.1 evaluation version (installed from atlassian-bamboo-1.1-standalone.exe), Java 1.4.2_14-b05, Windows XP Professional Version 2002 SP2. Bamboo is running as a service.
Bamboo shows a failed Maven2 build as a successful one. It is probably something to do with how many lines is read from the Maven log to recognise the failed build. Whenever there are some missing dependencies and "cannot resolve symbol" errors, they are shown after "[ERROR] BUILD FAILURE" line and that may cause the incorrect behaviour.
This problem should be easy to reproduce by creating a few objects in Java code but leaving all the necessary dependencies out of pom.xml.
Notice also that "The build will produce test results." flag must be turned OFF to show off this bug.
When "The build will produce test results." flag is turned on the build fails as it should.
A used Maven command was:
mvn clean install --batch-mode
Here is the log:
15-touko-2007 11:22:56 Executing build 17
15-touko-2007 11:22:56
Starting to build 'EasyTest - Trunk'
... running command line: C:\programs\maven-2.0.6\bin\mvn.bat clean install
... in : C:\ROOT\bamboo-home\xml-data\build-dir\ET-TR
... using java: C:\j2sdk1.4.2_14
... using environment variables:
15-touko-2007 11:22:57 [INFO] Scanning for projects...
15-touko-2007 11:22:57 [INFO] ----------------------------------------------------------------------------
15-touko-2007 11:22:57 [INFO] Building Unnamed - com.profitsoftware:EasyTest:jar:0.0.1
15-touko-2007 11:22:57 [INFO] task-segment: [clean, install]
15-touko-2007 11:22:57 [INFO] ----------------------------------------------------------------------------
15-touko-2007 11:22:57 [INFO] [clean:clean]
15-touko-2007 11:22:57 [INFO] Deleting directory C:\ROOT\bamboo-home\xml-data\build-dir\ET-TR\target
15-touko-2007 11:22:57 [INFO] Deleting directory C:\ROOT\bamboo-home\xml-data\build-dir\ET-TR\target\classes
15-touko-2007 11:22:57 [INFO] Deleting directory C:\ROOT\bamboo-home\xml-data\build-dir\ET-TR\target\test-classes
15-touko-2007 11:22:57 [INFO] Deleting directory C:\ROOT\bamboo-home\xml-data\build-dir\ET-TR\target\site
15-touko-2007 11:22:58 [INFO] [resources:resources]
15-touko-2007 11:22:58 [INFO] Using default encoding to copy filtered resources.
15-touko-2007 11:22:58 [INFO] [compiler:compile]
15-touko-2007 11:22:58 [INFO] Compiling 3 source files to C:\ROOT\bamboo-home\xml-data\build-dir\ET-TR\target\classes
15-touko-2007 11:22:59 [INFO] ------------------------------------------------------------------------
15-touko-2007 11:22:59 [ERROR] BUILD FAILURE
15-touko-2007 11:22:59 [INFO] ------------------------------------------------------------------------
15-touko-2007 11:22:59 [INFO] Compilation failure
15-touko-2007 11:22:59
15-touko-2007 11:22:59 C:\ROOT\ bamboo-home\xml-data\build-dir\ET-TR\src\main\java\com\ profitsoftware\integration\TicketList.java:[5,41] package com.profitsoftware.ppm.common.dao does not exist
15-touko-2007 11:22:59
15-touko-2007 11:22:59 C:\ROOT\ bamboo-home\xml-data\build-dir\ET-TR\src\main\java\com\ profitsoftware\integration\TicketList.java:[16,16] cannot resolve symbol
15-touko-2007 11:22:59 symbol : class ParamInfo
15-touko-2007 11:22:59 location: class com.profitsoftware.integration.TicketList
15-touko-2007 11:22:59
15-touko-2007 11:22:59 C:\ROOT\ bamboo-home\xml-data\build-dir\ET-TR\src\main\java\com\ profitsoftware\integration\TicketList.java:[16,39] cannot resolve symbol
15-touko-2007 11:22:59 symbol : class ParamInfo
15-touko-2007 11:22:59 location: class com.profitsoftware.integration.TicketList
15-touko-2007 11:22:59
15-touko-2007 11:22:59
15-touko-2007 11:22:59 [INFO] ------------------------------------------------------------------------
15-touko-2007 11:22:59 [INFO] For more information, run Maven with the -e switch
15-touko-2007 11:22:59 [INFO] ------------------------------------------------------------------------
15-touko-2007 11:22:59 [INFO] Total time: 1 second
15-touko-2007 11:22:59 [INFO] Finished at: Tue May 15 11:22:59 EEST 2007
15-touko-2007 11:22:59 [INFO] Final Memory: 4M/9M
15-touko-2007 11:22:59 [INFO] ------------------------------------------------------------------------
15-touko-2007 11:22:59 Completed building build "EasyTest - Trunk" return code = 0
15-touko-2007 11:22:59 Build Completed... finalising build
15-touko-2007 11:22:59 Stopping timer.
15-touko-2007 11:22:59 Build ET-TR-17 completed.
- duplicates
-
BAM-1117 Ant builder checks last 5 lines for BUILD SUCCESSFUL
-
- Closed
-