Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SC-1.2
    • Component/s: None
    • Labels:
      None

      Description

      To help users to setup a build, we could provide build templates for:

      • MSBuild (Prepare, restore, msbuild, test, run analysis, publish results)
      • Maven (Prepare, Maven, publish results)
      • Gradle (Prepare, Maven, publish results)

      Gradle build template

      • Task: Prepare analysis on SonarCloud
        • Pre-select "Integrate with Maven or Gradle"
      • Task: gradlew build
        • Pre-select JaCoCo code coverage tool
        • Pre-select Run SonarQube or SonarCloud Analysis
      • Task: Publish Analysis Result
        • disabled by default

      Maven build template

      • Same as Gradle build template, except:
        • the second task is the Maven task, and
        • the following additional option is supplied: "-Dmaven.test.failure.ignore=true"

      MSBuild template

      • Task: Use NuGet 4.4.1
      • Task: NuGet restore
      • Task: Prepare analysis on SonarCloud
        • pre-select "Integrate with MSBuild" (which is the default)
      • Task: Visual Studio Build
      • Task: Visual Studio Test
        • pre-select "Code coverage enabled"
      • Task: run Code Analysis
      • Task: Publish Analysis Result
        • disabled by default

      .NET Core template

      • Task: .NET Core - restore command
      • Task: Prepare analysis on SonarCloud
        • pre-select "Integrate with MSBuild" (which is the default)
      • Task: .NET Core - build command
      • Task: .NET Core - test command
      • Task: run Code Analysis
      • Task: Publish Analysis Result
        • disabled by default

      All of the templates should use the SonarCloud icon.

      To start with there will not be a template for the standalone scanner; we don't know what the build step should be so it is not obvious what the template should contain.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                duncan.pocklington Duncan Pocklington
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: