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

Resolving filenames doesn't work with cmake/ninja generator

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • analysis-model
    • None
    • warnings-ng 4.0.0, analysis-model-api 3.0.0

      I've a c++ project which is created with cmake (CMake build).

      When cmake create normal Makefiles, the warnings can be parsed and the warnings page contains the affected source files including a link to the source file:

      When I use 'Ninja' as 'Script Generator', the warnings page also shows all warnings but the source files are without a link:

      I did not change anything other so I assume the output is a little bit different so the warnings parser can not parse it.

      In the log file I see a warning: 'Can't resolve absolute path for some files' which would explain the problem. Looks like Ninja outputs relative paths. I'm using a build subdirectoy ('Build Directory').

        1. log.makefile
          4 kB
        2. log.ninja
          5 kB
        3. with_link.jpg
          with_link.jpg
          9 kB
        4. without_link.jpg
          without_link.jpg
          9 kB

          [JENKINS-56020] Resolving filenames doesn't work with cmake/ninja generator

          Christian Ehrlicher created issue -
          Christian Ehrlicher made changes -
          Attachment New: log.makefile [ 45952 ]
          Attachment New: log.ninja [ 45953 ]
          Ulli Hafner made changes -
          Link New: This issue is blocking JENKINS-56193 [ JENKINS-56193 ]
          Ulli Hafner made changes -
          Rank New: Ranked higher
          Ulli Hafner made changes -
          Component/s New: analysis-model [ 23523 ]
          Component/s Original: warnings-ng-plugin [ 24526 ]
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Ulli Hafner made changes -
          Released As New: warnings-ng 4.0.0, analysis-model-api 3.0.0
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            drulli Ulli Hafner
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: