cd: Added email on fail
Some checks failed
nathanwoodburn/woodburn/pipeline/head There was a failure building this commit

This commit is contained in:
Nathan Woodburn 2023-07-13 19:45:15 +10:00
parent d6a6f57bb0
commit c734919de7
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

2
Jenkinsfile vendored
View File

@ -14,8 +14,8 @@ pipeline {
if (affectedFiles) {
fileExists = true
}
// Fail the build and display the affected files
if (fileExists) {
mail bcc: '', body: 'Woodburn website canonical tages incorrect.', cc: '', from: 'noreply@woodburn.au', replyTo: 'noreply@woodburn.au', subject: 'Woodburn failed', to: 'jenkins@woodburn.au'
error("Error: Found occurrences of file names with the .html extension in the following files:\n${affectedFiles}")
}
}