Add Jenkinsfile

This commit is contained in:
Michael Teolis 2020-03-15 14:27:26 -04:00
parent 5c35771a20
commit fe311dea80

34
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,34 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh './mvnw compile'
}
}
stage('Test') {
steps {
sh './mvnw test'
}
}
stage('Package') {
steps {
sh './mvnw package'
}
}
stage('Deploy') {
when{
branch 'master'
}
steps {
sh './mvnw deploy'
}
}
}
post {
success {
slackSend(color: 'good', message: "Build Passed Successfully - Question 1 - Michael Teolis (40062906)")
}
}
}