Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21046

option to generate clover report regardless of build status



    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • cloverphp-plugin
    • None
    • Plugin version 0.3.3
      Jenkins 1.509.4 (LTS)


      I got a fairly large PHPUnit test suite that takes up to 40 minutes to run. Due to some weird bug in PHP or Xdebug, it ends segfaulting when PHP shutdown. Regardless, the clover.xml is properly generated and could be made a report.

      Alas, the plugin does not generate the clover report because of the build failure (added URL to console log, copied relevant part below):

      /tmp/hudson2299744543392632448.sh: line 8: 6928 Segmentation fault nice -n 19 php tests/phpunit/phpunit.php --with-phpunitdir /srv/deployment/integration/phpunit/vendor/phpunit/phpunit --exclude-group Dump,Broken,ParserFuzz,Stub --coverage-clover log/clover.xml --coverage-html /srv/org/wikimedia/integration/cover/mediawiki-core/master/php
      Build step 'Execute shell' marked build as failure
      Publishing Clover coverage report...
      No Clover report will be published due to a Build Failure
      Finished: FAILURE

      It would be very nice to have an option detecting whether the clover.xml is non empty and fresh and generate the coverage report regardless of the build status.



          hashar Antoine Musso created issue -
          sogabe sogabe made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          sogabe sogabe added a comment -

          fixed in 0.4

          sogabe sogabe added a comment - fixed in 0.4
          sogabe sogabe made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 152887 ] JNJira + In-Review [ 194391 ]


            sogabe sogabe
            hashar Antoine Musso
            3 Vote for this issue
            3 Start watching this issue