mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Email for Jenkinsfile
This commit is contained in:
parent
934749fe72
commit
f0da0163a8
1 changed files with 12 additions and 0 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -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}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue