SonarCakeAliases.

SonarEnd(ICakeContext, SonarEndSettings) Method

Summary

Run the actual sonar analysis and push them to sonar. This call should follow after a SonarBegin and MSBuild.
Assembly
Cake.Sonar.dll
Namespace
Cake.Sonar
Containing Type
SonarCakeAliases

Syntax

public static void SonarEnd(this ICakeContext context, SonarEndSettings settings)

Examples

Task("Sonar-Analyse")
  .Does(() => {
      var user = EnvironmentVariable("SONAR_USER");
      var pass = EnvironmentVariable("SONAR_PASS");
      SonarEnd(new SonarEndSettings { Login = user, Password = pass });
  });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext
settings SonarEndSettings A settings object containing credentials.

Return Value

Type Description
void