Added Jenkinsfile

This commit is contained in:
khalilalturk 2020-03-15 20:25:44 -04:00
parent c30611ca16
commit 30d11a6973

37
Jenkinsfile vendored
View file

@ -1,12 +1,13 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh './mvnw package' sh './mvnw package'
} }
} }
stage('Test') {
stage('Test') {
steps { steps {
sh 'mvn test' sh 'mvn test'
} }
@ -19,15 +20,13 @@ pipeline {
} }
stage('Deploy') { stage('Deploy') {
when { when {
branch 'master' branch 'master'
} }
steps { steps {
sh './mvnw deploy' sh './mvnw deploy'
} }
} }
}
}
}
}