Add jenkins build #1
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -39,11 +39,13 @@ pipeline {
|
||||
stage('SonarQube Analysis') {
|
||||
steps {
|
||||
withSonarQubeEnv(installationName: 'SQ Bib Watcher', envOnly: true) {
|
||||
sh """
|
||||
printenv
|
||||
cargo clippy --message-format=json &> clippy-output.json
|
||||
sonar-scanner -Dsonar.projectKey=bib-watcher -Dsonar.sources=. -Dsonar.host.url=http://grover.local:9000
|
||||
"""
|
||||
withEnv(["PATH+RUST=$HOME/.cargo/bin"]) {
|
||||
sh """
|
||||
SONAR_TOKEN="$SONAR_AUTH_TOKEN"
|
||||
cargo clippy --message-format=json &> clippy-output.json
|
||||
sonar-scanner -Dsonar.projectKey=bib-watcher -Dsonar.sources=. -Dsonar.host.url=http://grover.local:9000
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user