mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 14:03:37 -05:00
Try email only on master branch (#47)
This commit is contained in:
parent
4e0a159db4
commit
38b3626014
1 changed files with 4 additions and 0 deletions
4
services/web/Jenkinsfile
vendored
4
services/web/Jenkinsfile
vendored
|
@ -160,6 +160,10 @@ pipeline {
|
||||||
|
|
||||||
post {
|
post {
|
||||||
failure {
|
failure {
|
||||||
|
when {
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
|
|
||||||
mail(from: "${EMAIL_ALERT_FROM}",
|
mail(from: "${EMAIL_ALERT_FROM}",
|
||||||
to: "${EMAIL_ALERT_TO}",
|
to: "${EMAIL_ALERT_TO}",
|
||||||
subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}",
|
subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}",
|
||||||
|
|
Loading…
Reference in a new issue