Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6250

Unable to use sonar.branch on dotnet projects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.1
    • Component/s: Scanner
    • Labels:
      None

      Description

      The use of sonar.branch combined with use of ProjectBuilder extension to create dynamic modules (like in the Visual Studio plugin) lead to unexpected errors:

      • issue tracking may fail with
        Caused by: java.lang.IllegalStateException: Resource org.sonar.api.resources.File@6204cb60[key=ADSync.cs,deprecatedKey=ADSync.cs,path=ADSync.cs,dir=[root],filename=ADSync.cs,language=C#] was not found in InputPath cache
        	at org.sonar.plugins.core.issue.IssueTrackingDecorator.doDecorate(IssueTrackingDecorator.java:133)
        
      • module level settings defined in the UI are probably not considered

      This is because the sonar.branch property is not properly propagated to dynamically created children modules.

        Attachments

          Activity

            People

            Assignee:
            henryju OLD - Julien HENRY
            Reporter:
            henryju OLD - Julien HENRY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: