cobertura plugin skips generating report although build was SUCCESS

1,238 views
Skip to first unread message

Ken Gullaksen

unread,
May 18, 2011, 8:02:08 AM5/18/11
to jenkins...@googlegroups.com
Hi,

I have been battling an issue with cobertura plugin for some time.
At some point I checked the "consider only stable builds", but have now unchecked this option.
Either way the build is now failing for some strange reason. If I clear the workspace, the build is ok for a while, but then fails again with this same output.

The output from maven:
Tests run: 344, Failures: 0, Errors: 0, Skipped: 13
Flushing results...
Flushing results done
Cobertura: Loaded information on 201 classes.
Cobertura: Saved information on 201 classes.
[JENKINS] Recording test results
forkedProjectSucceeded com.cisco.ts.mgmt:user-repository1.5-SNAPSHOT
[JENKINS] Archiving /home/hudson/workspace/cap-coverage-user-repo/pom.xml to /var/lib/jenkins/jobs/cap-coverage-user-repo/modules/com.cisco.ts.mgmt$user-repository/builds/2011-05-18_13-41-53/archive/com.cisco.ts.mgmt/user-repository/1.5-SNAPSHOT/user-repository-1.5-SNAPSHOT.pom
mojo forkSucceeded org.codehaus.mojo:cobertura-maven-plugin:2.4(default-cli)
[JENKINS] Recording coverage results
[JENKINS] cobertura-maven-plugin already configured with xml reports enabled
[INFO] 
[INFO] --- cobertura-maven-plugin:2.4:cobertura (default-cli) @ user-repository ---
[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 201 classes.
Report time: 3375ms
[INFO] Cobertura Report generation was successful.
[JENKINS] Recording coverage results
[JENKINS] Unable to add link to cobertura results
projectSucceeded com.cisco.ts.mgmt:user-repository:1.5-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:47.771s
[INFO] Finished at: Wed May 18 13:46:47 CEST 2011
[INFO] Final Memory: 28M/215M
[INFO] ------------------------------------------------------------------------
maven builder waiting
Sending e-mails to: ...
channel stopped
Skipping Cobertura coverage report as build was not UNSTABLE or better ...
Sending e-mails to: ...
[ci-game] evaluating rule: Build result
[ci-game] scored: -10.0
[ci-game] evaluating rule: Increased number of failed tests
...
Finished: SUCCESS

I have tried attaching a logger for hudson.model.Run at FINEST level, but all i got in the output was:
May 18, 2011 1:46:48 PM hudson.model.Run run
INFO: cap-coverage-user-repo #26 main build action completed: SUCCESS

Ken Gullaksen

unread,
May 20, 2011, 8:38:42 AM5/20/11
to jenkins...@googlegroups.com
Hi again,
I'm wondering if I should post a bug report on this issue.
This definately is strange behaviour, and seems to be a bug in Jenkins.

Todd

unread,
May 24, 2011, 12:29:26 PM5/24/11
to Jenkins Users
I'm seeing the exact same issue. For me, if the workspace in not
cleared EVERY time, then is fails as you described.


Found mavenVersion 3.0.2 from file jar:file:/buildtools/hudson/tools/
maven-3.0.2/lib/maven-core-3.0.2.jar!/META-INF/maven/org.apache.maven/
maven-core/pom.properties
Parsing POMs
[workspace] $ /buildtools/binaries/jdk1.6.0_21/bin/java -cp /
buildtools/hudson/plugins/maven-plugin/WEB-INF/lib/maven3-
agent-1.1.jar:/buildtools/hudson/tools/maven-3.0.2/boot/plexus-
classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /
buildtools/hudson/tools/maven-3.0.2 /buildtools/tomcat/webapps/hudson/
WEB-INF/lib/remoting-1.409.jar /buildtools/hudson/plugins/maven-plugin/
WEB-INF/lib/maven3-interceptor-1.1.jar 53411
<===[HUDSON REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/workspace/pom.xml package
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building VSChromeCoreClasses 2.11.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
@ VSChromeCoreClasses ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
VSChromeCoreClasses ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-
testResources) @ VSChromeCoreClasses ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-
testCompile) @ VSChromeCoreClasses ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @
VSChromeCoreClasses ---
[INFO] Surefire report directory: /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/workspace/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @
VSChromeCoreClasses ---
[INFO]
[INFO] --- cobertura-maven-plugin:2.5:clean (default) @
VSChromeCoreClasses ---
mojo forkStarted org.codehaus.mojo:cobertura-maven-plugin:2.5(default)
[JENKINS] cobertura-maven-plugin already configured with xml reports
enabled
forkedProjectStarted
com.cccis.valuation.mvi.core:VSChromeCoreClasses2.11.0-SNAPSHOT
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
@ VSChromeCoreClasses ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
VSChromeCoreClasses ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- cobertura-maven-plugin:2.5:instrument (default) @
VSChromeCoreClasses ---
[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See
COPYRIGHT file
Instrumenting 61 files to /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/workspace/target/generated-classes/
cobertura
Cobertura: Saved information on 61 classes.
Instrument time: 3088ms

[INFO] Instrumentation was successful.
[INFO] NOT adding cobertura ser file to attached artifacts list.
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-
testResources) @ VSChromeCoreClasses ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-
testCompile) @ VSChromeCoreClasses ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.1:test (default-test) @
VSChromeCoreClasses ---
[INFO] Surefire report directory: /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/workspace/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
forkedProjectSucceeded
com.cccis.valuation.mvi.core:VSChromeCoreClasses2.11.0-SNAPSHOT
[JENKINS] Archiving /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/workspace/pom.xml to /buildtools/hudson/
jobs/valuation_vschrome_coreclasses/modules/
com.cccis.valuation.mvi.core$VSChromeCoreClasses/builds/
2011-05-24_11-20-08/archive/com.cccis.valuation.mvi.core/
VSChromeCoreClasses/2.11.0-SNAPSHOT/VSChromeCoreClasses-2.11.0-
SNAPSHOT.pom
mojo forkSucceeded org.codehaus.mojo:cobertura-maven-plugin:
2.5(default)
[JENKINS] Recording coverage results
[JENKINS] cobertura-maven-plugin already configured with xml reports
enabled
[INFO]
[INFO] --- cobertura-maven-plugin:2.5:cobertura (default) @
VSChromeCoreClasses ---
[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See
COPYRIGHT file
Cobertura: Loaded information on 61 classes.
Report time: 8729ms

[INFO] Cobertura Report generation was successful.
[JENKINS] Recording coverage results
[JENKINS] Unable to add link to cobertura results
projectSucceeded com.cccis.valuation.mvi.core:VSChromeCoreClasses:
2.11.0-SNAPSHOT
[JENKINS] Archiving /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/workspace/target/
VSChromeCoreClasses-2.11.0-SNAPSHOT.jar to /buildtools/hudson/jobs/
valuation_vschrome_coreclasses/modules/com.cccis.valuation.mvi.core
$VSChromeCoreClasses/builds/2011-05-24_11-20-08/archive/
com.cccis.valuation.mvi.core/VSChromeCoreClasses/2.11.0-SNAPSHOT/
VSChromeCoreClasses-2.11.0-SNAPSHOT.jar
sessionEnded
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 30.701s
[INFO] Finished at: Tue May 24 11:20:46 CDT 2011
[INFO] Final Memory: 11M/164M
[INFO]
------------------------------------------------------------------------
An attempt to send an e-mail to empty list of recipients, ignored.
channel stopped
Skipping Cobertura coverage report as build was not UNSTABLE or
better ...
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: SUCCESS

On May 20, 7:38 am, Ken Gullaksen <ken.gullak...@gmail.com> wrote:
> Hi again,
> I'm wondering if I should post a bug report on this issue.
> This definately is strange behaviour, and seems to be a bug in Jenkins.
>

Todd Rigertas

unread,
May 24, 2011, 2:34:28 PM5/24/11
to Jenkins Users
I have opened https://issues.jenkins-ci.org/browse/JENKINS-9757 on the
issue. Please add to it if you are still seeing problems.
Reply all
Reply to author
Forward
0 new messages