diff --git a/Jenkinsfile b/Jenkinsfile index aa8bd283e..52fcbad3a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,33 @@ pipeline { agent any + stages { stage('Build') { + when { branch 'master' } + steps { + sh './mvnw compile' + } + } + + stage('Test') { + when { branch 'master' } + steps { + sh './mvnw test' + } + } + + stage('Package') { + when { branch 'master' } steps { sh './mvnw package' } } + + stage('Deploy') { + when { branch 'master' } + steps { + sh './mvnw deploy' + } + } } }