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

SourceCodePainter overwrites original files

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cobertura-plugin
    • Labels:
    • Environment:
      Windows 7
    • Similar Issues:

      Description

      coverage.xml contains filename attributes.
      If this attribute is absolute based on hudson.FilePath implementation,
      canvas FilePath object is created as absolute and outside of the intended cobertura job directory. SourceCodePainter overwrites this file in paintSourceCode().

      Attached is a very simple patch, pointing to the problem.
      coverage.xml is produced on Windows by patched gcovr.py using QNX cross compiler tools. It is simplified for testing.

        Attachments

          Activity

            People

            • Assignee:
              sogabe sogabe
              Reporter:
              myukselen Murat Yukselen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: