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

Possibility to specify custom "source" folder in cobertura plugin config

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • cobertura-plugin
    • None

      It would be nice to have a feature that allows to configure a custom folder (or more than one) to look for source files.
      Infact, I have a project with "non standard" folders and can't display sources with coverage results.

      Thanks for your work.

          [JENKINS-5988] Possibility to specify custom "source" folder in cobertura plugin config

          acdha added a comment -

          Very strong agreement: we have a project where the structure ends up needing to be WORKSPACE/top-level-module-folder/project-folder/ and the coverage report is generated with paths relative to the project folder, not the top-level module folder. Currently this is "fixed" by a horrible Perl hack which rewrites the filenames but it'd be really nice to simply be able to say "coverage.xml is relative to ${WORKSPACE}/module/project/".

          acdha added a comment - Very strong agreement: we have a project where the structure ends up needing to be WORKSPACE/top-level-module-folder/project-folder/ and the coverage report is generated with paths relative to the project folder, not the top-level module folder. Currently this is "fixed" by a horrible Perl hack which rewrites the filenames but it'd be really nice to simply be able to say "coverage.xml is relative to ${WORKSPACE}/module/project/".

          Jens Müller added a comment -

          Umm, where does the Cobertura plugin look for source code at the moment?! According to https://issues.jenkins-ci.org/browse/JENKINS-13889, I believe the source directory should be given in the coverage.xml report using an absolute path.

          This does not work for me anyway, but I am not able to understand this change request without understanding what the status quo is ...

          Jens Müller added a comment - Umm, where does the Cobertura plugin look for source code at the moment?! According to https://issues.jenkins-ci.org/browse/JENKINS-13889 , I believe the source directory should be given in the coverage.xml report using an absolute path. This does not work for me anyway, but I am not able to understand this change request without understanding what the status quo is ...

          Last two releases (separated by over a year) were by olivergondza so looks like the maintainer

          Stephen Connolly added a comment - Last two releases (separated by over a year) were by olivergondza so looks like the maintainer

            Unassigned Unassigned
            stefanobertini stefanobertini
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: