Issue Type: Bug Bug
Assignee: Simon Brandhof
Created: 10/Dec/13 8:10 AM
Description:

The fact that the surefire/failsafe plugin is returning a negative execution time is a bug on its part but the sonar plugin should be able to properly handle this and continue on with analysis. The negative execution time happens alot on our project and it seems to come from the setup phase of the test failing. This should be fixed as well but just would like to see Sonar just handle this a little more gracefully and continue on.

Ex.)
XXXXXX Time elapsed: -600,346.09 sec <<< ERROR!
....
error 10-Dec-2013 06:14:55 Error occurred while running Task 'Run Tests and Sonar Analysis(1)' of type com.marvelution.bamboo.plugins.sonar.tasks:task.builder.sonar3.
error 10-Dec-2013 06:14:55 com.atlassian.bamboo.task.TaskException: Failed to execute sonar task
error 10-Dec-2013 06:14:55 at com.marvelution.bamboo.plugins.sonar.tasks.AbstractSonarMavenBuildTask.execute(AbstractSonarMavenBuildTask.java:138)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:216)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55)
error 10-Dec-2013 06:14:55 at java.lang.Thread.run(Thread.java:662)
error 10-Dec-2013 06:14:55 Caused by: java.util.MissingFormatArgumentException: Format specifier 'd'
error 10-Dec-2013 06:14:55 at java.util.Formatter.format(Formatter.java:2432)
error 10-Dec-2013 06:14:55 at java.util.Formatter.format(Formatter.java:2367)
error 10-Dec-2013 06:14:55 at java.lang.String.format(String.java:2769)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:155)
error 10-Dec-2013 06:14:55 at com.atlassian.bamboo.task.TaskResultBuilder.checkReturnCode(TaskResultBuilder.java:137)
error 10-Dec-2013 06:14:55 at com.marvelution.bamboo.plugins.sonar.tasks.AbstractSonarMavenBuildTask.execute(AbstractSonarMavenBuildTask.java:114)
error 10-Dec-2013 06:14:55 ... 8 more

Project: Mojo's Sonar Maven Plugin
Priority: Major Major
Reporter: Daniel Cruver
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to