2017-05-19 6 views
0

email-ext(v2.57.2)を使用したjenkinsパイプラインジョブで電子メール通知を設定しました。電子メールは、反復の最初のカップルのために罰金送信されますが、その後についての第四実行後、次のエラーが発生する(およびそれ以降のすべての実行のために起こって続けて):ジェンキンスを見にログインしている、非常にわからないjenkins email-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。"というジョブがスケジュールされた方法で実行されている場合、この値はnullとして表示されます。

jenkinsファイルを切り替えて、jenkins環境変数を使用するようにしました。

def emailRecipients = "${env.EMAIL_RECIPIENTS}"; 
emailext (subject: subject, body: details, to: emailRecipients) 
関連する問題