To send email notifications you need to add the following settings to your config file:
#Using a company SMTP server (note only one can be define)
smtpHost = mail.example.com:25
emailFrom = [email protected]
#Using Gmail with TLS and username/password
smtpHost = smtp.gmail.com:587
emailFrom = [email protected]
smtpUsername = [email protected]
smtpPassword = ${env.EMAILPASSWORD}
#Chained notifications will escalate if an incident is not acked before the timeout
notification it {
email = [email protected]
next = oncall
timeout = 30m
}
#Could set additional escalations here using any notification type (email/get/post)
#or set next = oncall to send another email after the timeout if alert is still not acked
notification oncall {
email = [email protected]
}
#Multiple email addresses can be specified in one notification definition
#Use runOnActions = false to exclude updates on actions (ack/closed/forget)
notification engineering {
email = [email protected],[email protected],[email protected]
runOnActions = false
}