Added Jenkinsfile

This commit is contained in:
khalilalturk 2020-03-15 17:19:16 -04:00
parent a63031ed82
commit e875c89e4d

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 'mvn deploy' sh 'mvn deploy'
} }
} }
}
}
}
}