Update Jenkinsfile

This commit is contained in:
Jake Bédard 2020-03-12 17:27:36 -04:00 committed by GitHub
parent bfb800292a
commit 66c0e9f349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

21
Jenkinsfile vendored
View file

@ -2,9 +2,30 @@ pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
steps {
sh './mvnw compile'
}
}
stage('Test') {
steps {
sh './mvnw test'
}
}
stage('Package') {
steps { steps {
sh './mvnw package' sh './mvnw package'
} }
} }
stage('Deploy') {
steps {
sh './mvnw deploy'
}
}
} }
post {
sucess {
echo $ echo "build passed" | mail -s "Jenkins Question 1 - Build Passed" bedardjake@gmail.com
}
}
} }