Skip to content
Snippets Groups Projects
Commit 2b6adbfc authored by Marica Antonacci's avatar Marica Antonacci
Browse files

Add conditional for email

parent 0e60bd4d
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,11 @@ pipeline { ...@@ -44,7 +44,11 @@ pipeline {
''' '''
} }
failure { failure {
emailext body: '$DEFAULT_CONTENT', subject: '$DEFAULT_SUBJECT', to: '$DEFAULT_RECIPIENTS' script {
if ( fileExists ('severity.json')) {
emailext body: '$DEFAULT_CONTENT', subject: '$DEFAULT_SUBJECT', to: '$DEFAULT_RECIPIENTS'
}
}
} }
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment