Bamboo claims my maven build as failed but the build was ok

Hi,

I've a problem with my maven builds. Bamboo recognizes them as failed but they're successful.

Searching the web led my to this article: http://confluence.atlassian.com/display/BAMBOO/Bamboo+indicates+that+my+Ant+or+Maven+builds+failed,+even+though+they+were+successful

As you can see below, the build meets the definition of successful builds described above.

The article above is for Bamboo v3.2, but I'm running the old v2.2.3 of Bamboo.

These are the last lines of the build logfile:

build	10-Aug-2011 14:02:22	[INFO] de.zdf.cmzwo.cmzwo-zdfportal ...................... SUCCESS [1:57.202s]
build	10-Aug-2011 14:02:22	[INFO] ------------------------------------------------------------------------
build	10-Aug-2011 14:02:22	[INFO] BUILD SUCCESS
build	10-Aug-2011 14:02:22	[INFO] ------------------------------------------------------------------------
build	10-Aug-2011 14:02:22	[INFO] Total time: 3:36.994s
build	10-Aug-2011 14:02:22	[INFO] Finished at: Wed Aug 10 14:02:22 CEST 2011
build	10-Aug-2011 14:02:22	[INFO] Final Memory: 82M/593M
build	10-Aug-2011 14:02:22	[INFO] ------------------------------------------------------------------------
simple	10-Aug-2011 14:02:22	Build process for 'CMZwoelf Continuous Integration - Portal' returned with return code = 0
simple	10-Aug-2011 14:02:22	Parsing test results...
simple	10-Aug-2011 14:02:23	Running post build plugin 'Artifact Copier'
simple	10-Aug-2011 14:02:23	Running post build plugin 'NCover Results Collector'
simple	10-Aug-2011 14:02:23	Running post build plugin 'Clover Results Collector'
simple	10-Aug-2011 14:02:23	Finalising the build...
simple	10-Aug-2011 14:02:23	Stopping timer.
simple	10-Aug-2011 14:02:23	Build CM12CI-PORTAL-66 completed.
simple	10-Aug-2011 14:02:23	Running post build plugin on server 'Build Hanging Detection Configuration'
simple	10-Aug-2011 14:02:23	Running post build plugin on server 'NCover Results Collector'
simple	10-Aug-2011 14:02:23	Running post build plugin on server 'Clover Delta Calculator'

As you can see maven writes "BUILD SUCCESS" and return with 0.

Any ideas what the problem is?

Regards,
Thorsten

5 answers

1 accepted

1 vote

Maven 3 changed the success message from "BUILD SUCCESSFUL" to "BUILD SUCCESS".

Bamboo looks at the message AND the result code to determine the build status because for some Maven versions the result code was unreliable.

Old Bamboo version cannot handle that, I think this was fixed in Bamboo 2.6. If you cannot upgrade, you can try running maven through a wrapper script:

Script content:

/path/to/maven3/mvn "$@" | sed "s/BUILD SUCCESS\b/BUILD SUCCESSFUL/"

Or, switch to Maven 2.

0 vote

This is Maven 3, right?

Verify you have at least 1 successful test. There is a bug so if 0 successful tests -> failure.

Yes, it's maven 3.

Is this the problem?

Hi!

I have a similar problem and it only started recently which leads me to assume that some configuration on Bamboo has changed.

To put it into perspective: We are part of a bigger company which hosts Bamboo in-house (or rather on an AWS instance). Our build plans are a mixture of script, maven build and s3 upload tasks.

Up to about 2 weeks ago our builds showed up green, if there were no test errors. For the past two weeks even though no tests are reported as failed and the build log is clean and everything says success, the build shows up red/failed with the message:
"No failed tests found, a possible compilation error occurred."

Then it goes on to list log snippets like this:
SEVERE: Request Failed.
org.jets3t.service.S3ServiceException: S3 Error Message. ...
WARNING: Error Response: GET ...

So I am wondering, if there is any kind of log file parsing happening or any setting that we could change to avoid it reporting on errors that are not actually build errors.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Friday in Off-topic

Friday Fun: Riddle me this

Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did!  So, this week's Friday Fun thread w...

110 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you