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.5K

sonar-quality-gates-checker sonar-quality-gates-checker

Check Quality Gates from Sonarqube or Sonarcloud

arguments

  • SONAR_HOST_URL - SonarCloud or SonarQube URL.
  • SONAR_PASSWORD - SonarQube Passsword.
  • SONAR_PROJECT_KEY - SonarQube|Cloud Project.
  • SONAR_TOKEN - SonarCloud Token.
  • SONAR_USERNAME - SonarQube Username.

returns

  • SONAR_QUALITYGATES_STATUS - Quality Gates status of a Project
  • SONAR_QUALITYGATES_STATUS_JSON_PATH - Path to the JSON file response of the Quality Gates status of a Project
    check_quality_gates:
  type: sonar-quality-gates-checker
  arguments:
    SONAR_TOKEN: '${{MY_SONAR_TOKEN}}'
    SONAR_PROJECT_KEY: '${{MY_SONAR_PROJECT}}'

  
github.com
Francisco Cocozza, Dustin Van Buskirk
Jul 4, 2021