This commit is contained in:
mali 2022-03-17 22:44:43 +00:00
parent be6e4e4f55
commit 899f8e0e44

15
Jenkinsfile vendored
View File

@ -39,16 +39,21 @@ pipeline {
// docker:end // docker:end
// maven:start // maven:start
agent { agent any
docker { environment {
image "${MAVEN_IMAGE}" SCANNER_HOME = tool 'sonar-scanner'
}
} }
#agent {
# docker {
# image "${MAVEN_IMAGE}"
# }
#}
steps { steps {
withSonarQubeEnv('cicd') { withSonarQubeEnv('cicd') {
echo '################# MAVEN ###################' echo '################# MAVEN ###################'
sh 'mvn sonar:sonar' #sh 'mvn sonar:sonar'
sh "${SCANNER_HOME}/bin/sonar-scanner"
} }
} }
// maven:end // maven:end