Skip to content

Commit

Permalink
change launching sonarscan to dotnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyasaur committed Sep 23, 2024
1 parent f7c155f commit a8b5101
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,26 @@ pipeline {
fi
nvm use 16
npm install
npm run build
npm run test -- --coverage
'''

sh '''
sonar-scanner \
-Dsonar.login=$SONAR
echo "Sonar scan"
dotnet sonarscanner begin \
/k:"ita-social-projects_StreetCode_Client" \
/o:"ita-social-projects" \
/n:"StreetCode_Client" \
/d:sonar.projectDescription="Frontend app of Street Code project" \
/d:sonar.host.url="https://sonarcloud.io" \
/d:sonar.login=$SONAR \
/d:sonar.sources="src/" \
/d:sonar.exclusions="src/**/*test*,src/**/*spec*" \
/d:sonar.javascript.lcov.reportPaths="coverage/lcov.info"
dotnet build
dotnet sonarscanner end /d:sonar.token=$SONAR
'''
}
}
Expand Down

0 comments on commit a8b5101

Please sign in to comment.