History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-101
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Michael King
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Build success condition not working properly with maven2.0 builds

Created: 17/Jul/06 11:18 AM   Updated: 18/Jul/06 09:14 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Linux machine, running quickbuild 1.0.5


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
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

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

Robin Shen [17/Jul/06 05:50 PM]
There is a Maven2 builder which should be used for Maven2.0 or higher.

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