diff --git a/Jenkinsfile b/Jenkinsfile index 50a6677..1844731 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,12 +5,23 @@ pipeline { args '-v $HOME/.m2:/root/.m2' } } - stages { - stage('Build') { - steps { - sh 'mvn -B clean install' + stages { + stage('Build') { + steps { + checkout scm + sh './mvnw compile' + } + } + stage('Test') { + steps { + sh './mvnw test' + junit '**/target/surefire-reports/TEST-*.xml' + } + } + stage('Package') { + steps { + sh './mvnw package -DskipTests' + } } } - - } -} \ No newline at end of file + } \ No newline at end of file