diff --git a/Jenkinsfile b/Jenkinsfile index b6ecd53..49336a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,16 +39,21 @@ pipeline { // docker:end // maven:start - agent { - docker { - image "${MAVEN_IMAGE}" - } + agent any + environment { + SCANNER_HOME = tool 'sonar-scanner' } + #agent { + # docker { + # image "${MAVEN_IMAGE}" + # } + #} steps { withSonarQubeEnv('cicd') { echo '################# MAVEN ###################' - sh 'mvn sonar:sonar' + #sh 'mvn sonar:sonar' + sh "${SCANNER_HOME}/bin/sonar-scanner" } } // maven:end