SonarQube Jenkins
  1. SonarQube Jenkins
  2. SONARJNKNS-76

Running a standalone Sonar analysis fail if project is not at the root of the workspace

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 2.0.1
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Sonar runner is configured to take root of the Jenkins job workspace as project home directory. When it is not the case (for example if you specify a folder name for the location of the checkout when using SVN) Sonar analysis will failed to find your project settings/sources.

      Jenkins Sonar plugin should be more smart about the location of project home.

        Activity

        Hide
        Julien HENRY added a comment -

        We are now using getModuleRoot() instead of getWorkspace() as root directory.

        Show
        Julien HENRY added a comment - We are now using getModuleRoot() instead of getWorkspace() as root directory.
        Hide
        Fabrice Bellingard added a comment -

        Manually tested.

        Show
        Fabrice Bellingard added a comment - Manually tested.

          People

          • Assignee:
            Julien HENRY
            Reporter:
            Julien HENRY
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: