Skip to content

Commit

Permalink
Add triggers and email notifications to the build
Browse files Browse the repository at this point in the history
The provides a workaround for the lack of triggering from
SimRel -> EPP, see #122
  • Loading branch information
jonahgraham committed Apr 29, 2024
1 parent dd0a26b commit bfb6968
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Jenkinsfile
Expand Up @@ -4,6 +4,9 @@ pipeline {
timestamps()
disableConcurrentBuilds()
}
triggers {
cron('H 21 * * *') // run every day at ~9pm
}
tools {
maven 'apache-maven-latest'
jdk 'temurin-jdk21-latest'
Expand Down Expand Up @@ -121,6 +124,15 @@ pipeline {
}
}
post {
failure {
emailext (
subject: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':
Check console output at ${env.BUILD_URL}""",
recipientProviders: [[$class: 'DevelopersRecipientProvider']],
to: 'jonah@kichwacoders.com'
)
}
cleanup {
cleanWs()
}
Expand Down

0 comments on commit bfb6968

Please sign in to comment.