我在管道詹金斯工作中使用以下步骤:
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'my@xyz.com', sendToIndividuals: true])
但是当构建失败(即错误)时,没有发送电子邮件。任何指针为什么?
PS电子邮件可以从此服务器发送,我已经测试过了。
email jenkins jenkins-pipeline
email ×1
jenkins ×1
jenkins-pipeline ×1