• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cobertura-plugin
    • Windows 7

      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.

          [JENKINS-16252] SourceCodePainter overwrites original files

          Murat Yukselen created issue -
          sogabe made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: sogabe [ sogabe ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147066 ] New: JNJira + In-Review [ 192217 ]

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

              Created:
              Updated:
              Resolved: