CruiseControl.Net을 사용하여 Continuous Integration 환경을 설정했습니다. 빌드 실패시 전자 메일을 사람에게 보내는 방법을 알고 싶습니다.CruiseControl.Net에서 빌드가 실패하면 이메일 알림
미리 감사드립니다.
CruiseControl.Net을 사용하여 Continuous Integration 환경을 설정했습니다. 빌드 실패시 전자 메일을 사람에게 보내는 방법을 알고 싶습니다.CruiseControl.Net에서 빌드가 실패하면 이메일 알림
미리 감사드립니다.
<publishers>
블록 내에 <email>
블록을 사용할 수 있습니다.
우리의 시스템은 다음과 같습니다
<publishers>
<xmllogger />
<email from="[email protected]" mailhost="mail.ourcompany.com" includeDetails="TRUE" mailport="25" useSSL="FALSE">
<users>
<user name="Mr Happy" group="buildmaster" address="[email protected]" />
<user name="Mr Strong" group="buildmaster" address="[email protected]" />
</users>
<groups>
<group name="buildmaster" notification="change" />
</groups>
<converters>
<regexConverter find="$" replace="@ourcompany.com" />
</converters>
<modifierNotificationTypes>
<NotificationType>Failed</NotificationType>
<NotificationType>Fixed</NotificationType>
</modifierNotificationTypes>
</email>
</publishers>
NB, 우리는 최신의 소스를 얻을 빌드를 실행하는 <svn>
소스 제어 블록을 사용합니다. <regexConverter>
섹션은 svn 사용자를 취해 "@ ourcompany.com"을 끝에 추가하여 전자 메일 주소를 구성합니다.
이메일을 보내려면 SMTP 서버에 대한 세부 정보가 필요합니다. 나는 이것을 위해 gmail을 사용할 수 있다고 믿지만 우리 회사는 자체 SMTP 서버를 가지고있다.
"빌드 마스터"(미스터 해피와 미스터 스트롱)는 빌드 상태가 변경 될 때마다 전자 메일을 받게되며 SVN에 코드를 커밋 한 사람은 코드 작성이 실패하거나 고쳐 졌어.
<publishers>
섹션이없는 경우 <xmllogger/>
섹션이 기본적으로 필요하며 XML 로거 게시자가 있습니다. 이것은 웹 인터페이스에 대한 정보를 기록합니다.