Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
sonar-scanner-dotnet-linux sonar-scanner-dotnet-linux
SonarScanner for .NET Core Sonarqube 7.5
arguments
SonarqubeDotnetScan:
type: sonar-scanner-dotnet-linux
arguments:
SONAR_HOST_URL: 'https://sonarqube.codefresh.io'
SONAR_PROJECT_KEY: myprojectkey
SONAR_LOGIN: myuser
SONAR_PASSWORD: mypassword
SonarqubeCustomDotnetScan:
type: scan-project-custom-command
arguments:
SONAR_HOST_URL: 'https://sonarqube.codefresh.io'
SONAR_PROJECT_KEY: myprojectkey
SONAR_LOGIN: myuser
SONAR_PASSWORD: mypassword
DOTNET_COMMANDS:
- docker build...
SONAR_ANALYSIS_PARAMETERS:
- sonar.projectDescription='myprojectdesc'
- sonar.log.level=TRACE