2017-05-19 79 views
0

我有電子郵件通知在jenkins管道工作中使用電子郵件分機設置(v2.57.2)。這些電子郵件是第幾次迭代發送正常,但隨後約4執行後,會出現以下錯誤(和繼續發生的所有後續運行):jenkins電子郵件ext插件零星問題

> [Pipeline] emailext messageContentType = text/html; charset=UTF-8 
> Adding recipients from project recipient list Adding recipients from 
> trigger recipient list Successfully created MimeMessage An attempt to 
> send an e-mail to empty list of recipients, ignored. Some error 
> occured trying to send the email...check the Jenkins log 

不太清楚這詹金斯日誌來看看。 ..

+0

如果我更改jenkins作業配置中的任何內容,它將返回工作幾次,然後再次開始失敗 – opike

回答

0

找出它與$ class的用法有關:「RequesterRecipientProvider。當作業以預定方式運行時,此值爲空,只有在手動運行作業時纔會填充該作業。

結束切換Jenkinsfile以使用jenkins環境變量。

def emailRecipients = "${env.EMAIL_RECIPIENTS}"; 
emailext (subject: subject, body: details, to: emailRecipients)