Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1470

Fix conversion of "sonar.cfamily.build-wrapper-output" into absolute path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.10
    • Component/s: Sonar Plugin
    • Labels:
      None

      Description

      With current SonarQube LTS (5.6.x) and plugin version starting from 4.6 up to current latest released version 4.9 relative path specified in property "sonar.cfamily.build-wrapper-output" is interpreted relatively to each module directory. This is problematic for the case of Scanner for MSBuild, where easier to specify property once for all modules:

      SonarQube.Scanner.MSBuild.exe begin /d:sonar.cfamily.build-wrapper-output=relative_path
      build-wrapper-win-x86-64.exe --out-dir relative_path msbuild /t:rebuild
      SonarQube.Scanner.MSBuild.exe end
      

      Prior to CPP-1755, i.e. in plugin versions from 2.3 to 4.6, this case worked because relative path was interpreted relatively to the working directory of scanner, which is in most cases a project directory. However was not working case when project directory is not the working directory of scanner.

      Combination of plugin version 4.9 and SonarQube 6.4 is not affected because of CPP-1773.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              evgeny.mandrikov Evgeny Mandrikov
              Reporter:
              evgeny.mandrikov Evgeny Mandrikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: