Add env block for build stagw

This commit is contained in:
Max Nuding 2023-11-10 18:41:23 +01:00
parent f2c2d2a18b
commit 4ccaf9976a
No known key found for this signature in database

4
Jenkinsfile vendored
View File

@ -31,12 +31,14 @@ pipeline {
stage('Build'){ stage('Build'){
steps { steps {
withSonarQubeEnv(installationName: 'grover.local:9000', envOnly: true) { withSonarQubeEnv(installationName: 'grover.local:9000', envOnly: true) {
withEnv(["PATH+RUST=$HOME/.cargo/bin"]) {
sh 'cargo build --release' sh 'cargo build --release'
} }
} }
} }
}
/* /*
stage('SonarQube Analysis'){ stage('SonarQube Analysis') {
steps { steps {
withSonarQubeEnv('grover.local:9000') { withSonarQubeEnv('grover.local:9000') {
sh "dotnet ${MSBUILD_SQ_SCANNER_HOME}/SonarScanner.MSBuild.dll end" sh "dotnet ${MSBUILD_SQ_SCANNER_HOME}/SonarScanner.MSBuild.dll end"