Skip to content

Instantly share code, notes, and snippets.

@mstfymrtc
Created June 27, 2021 22:52
Show Gist options
  • Save mstfymrtc/c35fa40b064b4d1c232be50f51769c95 to your computer and use it in GitHub Desktop.
Save mstfymrtc/c35fa40b064b4d1c232be50f51769c95 to your computer and use it in GitHub Desktop.
SONAR_USER="admin"
SONAR_PASS="mustafa123"
SONAR_HOST_URL="http://localhost:9000"
SONAR_PROJECT_NAME="dotnet-mutation-testing-example"
dotnet-sonarscanner begin \
/k:$SONAR_PROJECT_NAME \
/n:$SONAR_PROJECT_NAME \
/d:sonar.host.url=$SONAR_HOST_URL \
/d:sonar.login=$SONAR_USER \
/d:sonar.password=$SONAR_PASS \
dotnet build -nologo -consoleLoggerParameters:NoSummary -verbosity:quiet --no-restore
dotnet-sonarscanner end \
/d:sonar.login=$SONAR_USER \
/d:sonar.password=$SONAR_PASS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment