Fix sonar analysis block

This commit is contained in:
Max Nuding 2023-11-10 19:27:55 +01:00
parent 84d9b15628
commit fbeb1b31d9
No known key found for this signature in database

12
Jenkinsfile vendored
View File

@ -39,11 +39,13 @@ pipeline {
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
steps { steps {
withSonarQubeEnv(installationName: 'SQ Bib Watcher', envOnly: true) { withSonarQubeEnv(installationName: 'SQ Bib Watcher', envOnly: true) {
sh """ withEnv(["PATH+RUST=$HOME/.cargo/bin"]) {
printenv sh """
cargo clippy --message-format=json &> clippy-output.json SONAR_TOKEN="$SONAR_AUTH_TOKEN"
sonar-scanner -Dsonar.projectKey=bib-watcher -Dsonar.sources=. -Dsonar.host.url=http://grover.local:9000 cargo clippy --message-format=json &> clippy-output.json
""" sonar-scanner -Dsonar.projectKey=bib-watcher -Dsonar.sources=. -Dsonar.host.url=http://grover.local:9000
"""
}
} }
} }
} }