<< Back to previous view |
![]() |
[QB-101] Build success condition not working properly with maven2.0 builds
|
|
Status: | Closed |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Michael King | Assigned To: | Robin Shen |
Resolution: | Won't Fix | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown | ||
Environment: | Linux machine, running quickbuild 1.0.5 |
Description |
If I set the "Build success condition " to this.result==0 my builds run successfully. But, if I set the value to this.result==0 and this.logContainsLine("BUILD SUCCESSFUL"), then my builds are shown as failed from QuickBuild, but the logs look fine. I have selected the "Success condition from Maven" entry from the Choose drop-down menu, so I don't think this is a typo on my part.
|
Comments |
Comment by Michael King [ 17/Jul/06 11:20 AM ] |
I forgot to mention that I am running this configuration with maven 2.0 $ mvn -v Maven version: 2.0.2 |
Comment by Robin Shen [ 17/Jul/06 05:50 PM ] |
There is a Maven2 builder which should be used for Maven2.0 or higher. |
Comment by Michael King [ 18/Jul/06 08:09 AM ] |
Hi Robin, I see the "won't fix" status for this issue and I just wanted to clarify that in my build scenario I am using a Maven2 builder. The problem is when I use a Maven2 build the "Build Success Condition" fails when it is set to this.logContainsLine("BUILD SUCCESSFUL"). The log file clearly says "BUILD SUCCESSFUL", but still QuickBuild's status on the build is set to failed. If I remove the this.logContainsLine("BUILD SUCCESSFUL") string from the success condition then the QuickBuild status on the build is set to success. I don't expect this to be reopened, but I do want to be sure that this configuration has been verfied on your end. Thanks, Mike |
Comment by Michael King [ 18/Jul/06 09:14 AM ] |
I see where the problem is. Since I am using QB1.0.5 I only see the following three options in the Build Success Condition pulldown menu: Success Condition for Ant Success Condition for Maven Success Condition for generic command lines After looking in the source code for QB1.0.7 I see that there is a 4th option: Success Condition for Maven2 This option includes the ".*BUILD SUCCESSFUL". I added the ".*" to my condition line and the status indicates a success now. Thanks again for your help and please disregard my previous comment. Mike |