added the stages

This commit is contained in:
khalilalturk 2020-03-15 20:15:46 -04:00
parent f503fdf2be
commit 78e9e90dc6

26
Jenkinsfile vendored
View file

@ -3,9 +3,31 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh './mvnw package' sh 'mvn clean'
} }
} }
stage('Test') {
steps {
sh 'mvn test'
}
} }
}
stage('Package') {
steps {
sh 'mvn package'
}
}
stage('Deploy') {
when {
branch 'master'
}
steps {
sh './mvnw deploy'
}
}
}
}