Interview Prep/CI/CD/Rapid-Fire Commands

Rapid-fire: SonarQube scanner and quality gate API commands.

IntermediateProductionRapid-Fire Commands
Answer
sonar-scanner -Dsonar.projectKey=shop-api -Dsonar.host.url=$SONAR_URL \
  -Dsonar.token=$SONAR_TOKEN -Dsonar.qualitygate.wait=true
curl -s -u "$SONAR_TOKEN:" \
  "$SONAR_URL/api/qualitygates/project_status?projectKey=shop-api" | jq .projectStatus.status
All CI/CD questions

More on Rapid-Fire Commands