Use extended email to send emails on failed build

This commit is contained in:
Dan Hawkins 2021-11-21 09:35:44 +00:00
commit f93acc5de9

View file

@ -12,9 +12,8 @@ pipeline {
stage('Dummy build job') {
steps {
script {
echo "Params:\n${params.toString()}"
echo "Execute dummy build job: ${CAUSE_ERROR}"
if (CAUSE_ERROR == true) {
if (CAUSE_ERROR == 'true') {
error("Causing error")
}
}