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 {
agent any
stages {
stage('Build') {
steps {
sh './mvnw package'
}
}
stage('Test') {
agent any
stages {
stage('Build') {
steps {
sh './mvnw package'
}
}
stage('Test') {
steps {
sh 'mvn test'
}
@ -19,15 +20,13 @@ pipeline {
}
stage('Deploy') {
when {
branch 'master'
}
steps {
sh 'mvn deploy'
}
}
}
}
when {
branch 'master'
}
steps {
sh 'mvn deploy'
}
}
}
}