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