Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
2

sonar-scanner-dotnet-windows sonar-scanner-dotnet-windows

SonarScanner for .NET 4.8 Sonarqube 7.5

arguments

  • SONAR_HOST_URL - Sonarqube Server Host URL.
  • SONAR_LOGIN - Sonarqube Project Token.
  • SONAR_PROJECT_KEY - Sonarqube Project Key Name.
  • WINDOWS_OS_BUILD_NUMBER - Step only supports specific Windows OS Builds, these are the tested OS Builds.
  • WORKING_DIRECTORY - Directory where dotnet project file exists. Example: REPO_NAME or REPO_NAME\SUBDIR
    SonarqubeDotnetScan:
  type: sonar-scanner-dotnet-windows
  arguments:
    NUGET_RESTORE: true
    SONAR_HOST_URL: 'https://sonarqube.codefresh.io'
    SONAR_PROJECT_KEY: myprojectkey
    SONAR_LOGIN: myprojecttoken
    WINDOWS_OS_BUILD_NUMBER: '17763.1935'

  
github.com
Dustin Van Buskirk
May 26, 2021