diff --git a/Jenkinsfile b/Jenkinsfile index 65911c3..11026cb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,16 @@ pipeline { agent any stages { + stage('Build') { + agent { + docker { + image "${MAVEN_IMAGE}" + } + } + steps { + sh 'mvn clean verify sonar:sonar' + } + } stage('Static Code Analysis') { agent { docker {