![]() ![]() Plugins that are already present will not be downloaded again, unless newer versions are available. Overrides the path where the scanner downloads its plugins. You need to give the absolute path to the file. Specifies an additional SonarQube analysis parameter, you can add this argument multiple times. Add this argument to improve build performance when issues should not be detected in Test Projects. Add this argument before sending logs for troubleshooting. If this argument is added to the begin step, it must also be added to the end step. Required if a client certificate is used. Specifies the password for the client certificate used to access SonarQube. The certificate must be password protected. Specifies the path to a client certificate used to access SonarQube. Specifies the authentication token used to authenticate with to SonarQube. Adding this argument will overwrite the project name in SonarQube if it already exists. Specifies the name of the analyzed project in SonarQube. Specifies the key of the analyzed project in SonarQube After installing the Scanner as a global tool as described above it can be invoked as follows: dotnet tool install -global dotnet-sonarscannerĭotnet sonarscanner begin /k:"project-key" /d:sonar.token=""ĭotnet sonarscanner end /d:sonar.token="" NET Core which has a very similar usage: dotnet begin /k:"project-key" /d:sonar.token="" Note: On macOS or Linux, you can also use mono. end /d:sonar.token="myAuthenticationToken" To use it, execute the following commands from the root folder of your project: begin /k:"project-key" /d:sonar.token="myAuthenticationToken" The first version is based on the "classic". In the following commands, you need to pass an authentication token using the sonar.token property or create the SONAR_TOKEN environment variable and set the token as its value.Īny project file accepted by MSBuild.exe or dotnet can be used, for example. There are two versions of the SonarScanner for. You can invoke the Scanner using arguments with both dash ( -) or forward-slash ( /) separators.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |