Formatting

This commit is contained in:
Max Nuding 2023-11-10 19:23:45 +01:00
parent 9b0c592e1d
commit 84d9b15628
No known key found for this signature in database

14
Jenkinsfile vendored
View File

@ -14,20 +14,20 @@ pipeline {
SONAR_SCANNER_OPTS="-server" SONAR_SCANNER_OPTS="-server"
} }
stages { stages {
stage('Checkout'){ stage('Checkout') {
steps{ steps{
cleanWs() //cleanWs()
checkout scm checkout scm
} }
}/* }
stage('Clean'){ /*stage('Clean') {
steps { steps {
withEnv(["PATH+RUST=$HOME/.cargo/bin"]) { // Cargo needs to be installed for the jenkins user withEnv(["PATH+RUST=$HOME/.cargo/bin"]) { // Cargo needs to be installed for the jenkins user
sh 'cargo clean' sh 'cargo clean'
} }
} }
}*/ }*/
stage('Build'){ stage('Build') {
steps { steps {
withSonarQubeEnv(installationName: 'SQ Bib Watcher', envOnly: true) { withSonarQubeEnv(installationName: 'SQ Bib Watcher', envOnly: true) {
withEnv(["PATH+RUST=$HOME/.cargo/bin"]) { withEnv(["PATH+RUST=$HOME/.cargo/bin"]) {
@ -36,10 +36,9 @@ pipeline {
} }
} }
} }
/*
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
steps { steps {
withSonarQubeEnv('grover.local:9000') { withSonarQubeEnv(installationName: 'SQ Bib Watcher', envOnly: true) {
sh """ sh """
printenv printenv
cargo clippy --message-format=json &> clippy-output.json cargo clippy --message-format=json &> clippy-output.json
@ -48,6 +47,5 @@ pipeline {
} }
} }
} }
*/
} }
} }