Email for Jenkinsfile

This commit is contained in:
Jonathan 2020-03-12 21:50:17 -04:00
parent 934749fe72
commit f0da0163a8

12
Jenkinsfile vendored
View file

@ -24,6 +24,18 @@ pipeline {
sh './mvnw deploy' sh './mvnw deploy'
} }
} }
post {
success {
mail to: 'bit172@gmail.com',
subject: "Successful Pipeline: ${currentBuild.fullDisplayName}",
body: "Successful build ${env.BUILD_URL}"
}
failure {
mail to: 'bit172@gmail.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Build Failure, location to build ${env.BUILD_URL}"
}
}
} }
} }