2017-05-19 22 views
0

email-ext (v2.57.2)를 사용하여 jenkins 파이프 라인 작업에 전자 메일 알림을 설정했습니다. 이메일은 반복의 처음 몇 좋은 전송하지만 약 4 실행 후, 다음과 같은 오류가 발생합니다 (모든 후속 실행 일어나고 계속) : 젠킨스가보고 기록하는 아주 확실하지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로 나타나며 수동으로 작업을 실행할 때만 채워집니다.

젠킨스 환경 변수를 사용하기 위해 젠킨스 파일을 끝내기로 끝 냈습니다.

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