Architecture (meta) #2192

Make cobertura, jenkins and Maven 3 work together

Added by François ARMAND over 2 years ago. Updated about 2 years ago.

Status:Released Start date:2012-01-24
Priority:1 Due date:
Assignee:François ARMAND % Done:

100%

Category:Architecture - Dependencies
Target version:2.4.0~beta3
Needs translating:No

Description

They don't seems to want to for now: coverage.xml are not generated anymore.


Related issues

related to Rudder - Architecture (meta) #2511: Upgrade to Scala-maven-plugin Released 2012-05-30

Associated revisions

Revision 7e5dc2df
Added by François ARMAND over 2 years ago

Fixes #2192: make cobertura generate coverage.xml reports even with maven 3

History

#1 Updated by Jonathan CLARKE over 2 years ago

  • Subject changed from Make cobertura, jenkins and Maven work together to Make cobertura, jenkins and Maven 3 work together
  • Description updated (diff)

#2 Updated by Jonathan CLARKE over 2 years ago

  • Category set to Architecture - Dependencies

#3 Updated by Jonathan CLARKE over 2 years ago

  • Assignee set to François ARMAND
  • Priority changed from N/A to 1
  • Target version changed from Ideas (2.5 specific) to 46

I just tested again, and Jenkins gives us this:

[INFO] --- cobertura-maven-plugin:2.5.1:instrument (default-cli) @ commons-parent ---
[INFO] Skipping cobertura mojo for project with packaging type 'pom'
[INFO] 
[INFO] --- scala-maven-plugin:3.0.2:testCompile (scala-test-compile) @ commons-parent ---
[INFO] Checking for multiple versions of scala
[WARNING]  Expected all dependencies to require Scala version: 2.9.2
[WARNING]  com.normation:commons-parent:2.5.0-20120531.221903-18 requires scala version: 2.9.2
[WARNING]  net.liftweb:lift-common_2.9.1:2.4 requires scala version: 2.9.1
[WARNING] Multiple versions of scala libraries detected!
[INFO] includes = [**/*.scala,**/*.java,]
[INFO] excludes = []
[WARNING] No source files found.
[INFO] 
[INFO] <<< cobertura-maven-plugin:2.5.1:cobertura (default-cli) @ commons-parent <<<
[INFO] 
[INFO] --- cobertura-maven-plugin:2.5.1:cobertura (default-cli) @ commons-parent ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] spring-run-dependencies ........................... SUCCESS [8.063s]
[INFO] utils ............................................. SUCCESS [40.835s]
[INFO] authorization-api ................................. SUCCESS [7.093s]
[INFO] eventlog-api ...................................... SUCCESS [22.401s]
[INFO] historization-api ................................. SUCCESS [27.914s]
[INFO] commons-parent .................................... SUCCESS [0.463s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:57.873s
[INFO] Finished at: Fri Jun 01 00:19:04 CEST 2012
[INFO] Final Memory: 15M/143M
[INFO] ------------------------------------------------------------------------
Publishing Cobertura coverage report...
No coverage results were found using the pattern '**/target/site/cobertura/coverage.xml' relative to '/var/lib/jenkins/jobs/rudder-commons-2.5-branch/workspace'.  Did you enter a pattern relative to the correct directory?  Did you generate the XML report(s) for Cobertura?
Build step 'Publish Cobertura Coverage Report' changed build result to FAILURE
IRC notifier plugin: Sending notification to: #rudder-dev
Sending e-mails to: developpeurs@lists.normation.com
Finished: FAILURE

See https://ci.normation.com/jenkins/view/Rudder%20branche%202.5%20%28code%29/job/rudder-commons-2.5-branch/155/console.

#4 Updated by Jonathan CLARKE over 2 years ago

By the way, our Jenkins uses Maven 3.0.4. We can try a more recent version if necessary?

#5 Updated by François ARMAND over 2 years ago

  • Status changed from New to Pending technical review
  • % Done changed from 0 to 100

Applied in changeset commit:7e5dc2df815be99050d91a81e8cde0629d5edd4a.

#6 Updated by Nicolas CHARLES about 2 years ago

  • Status changed from Pending technical review to Pending functional review

This looks valid, thank you Francois

#7 Updated by Jonathan CLARKE about 2 years ago

  • Tracker changed from User story (meta) to Architecture (meta)
  • Status changed from Pending functional review to Released

This is clearly not a user story!

#8 Updated by Jonathan CLARKE about 2 years ago

  • Target version changed from 46 to 50

#9 Updated by Jonathan CLARKE about 2 years ago

  • Target version changed from 50 to 2.4.0~beta3

Also available in: Atom PDF