Update .drone.yml
This commit is contained in:
@@ -17,10 +17,7 @@ steps:
|
|||||||
- export PATH="$PATH:/root/.dotnet/tools"
|
- export PATH="$PATH:/root/.dotnet/tools"
|
||||||
- ls
|
- ls
|
||||||
- dotnet tool install --global dotnet-sonarscanner
|
- dotnet tool install --global dotnet-sonarscanner
|
||||||
- dotnet sonarscanner begin /k:"$SONAR_PROJECT_KEY" /d:sonar.host.url="$SONAR_HOST" /d:sonar.login="$SONAR_TOKEN" /d:sonar.branch.name="$DRONE_REPO_BRANCH" /d:sonar.analysis.mode=preview
|
|
||||||
- dotnet restore
|
|
||||||
- dotnet build src.sln
|
|
||||||
- dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"
|
|
||||||
environment:
|
environment:
|
||||||
SONAR_HOST:
|
SONAR_HOST:
|
||||||
from_secret: sonar_host
|
from_secret: sonar_host
|
||||||
|
|||||||
Reference in New Issue
Block a user