当前位置: 首页 > news >正文

CruiseControl.NET : Email Publisher cc.net mail 配置(建议初学者必看)

这几天每天晚上都在学着使用cc.net,其他模块都挺好配置的,唯独mail设置耗时很久,原因网上也没什么很好的说明文字,特将我的调试过程记录如下(第二点对于像我这样的初学者要仔细看):


一:配置文件一定要写对,一定要仔细写,比我我很丢脸的就把我的mailhostUsername的节点设置错了两次,“*****”没有加"qq.com"; "qq.co"少加了一个字母“m”,虽然这让,配置文件验证工作CCValidator不会报错,但肯定会运行失败 我copy一份我本地的供大家参考:

<email mailport="25" includeDetails="TRUE" mailhostUsername="*****@qq.com" mailhostPassword="******" useSSL="FALSE">
				<from>******@qq.com</from>
				<mailhost>smtp.qq.com</mailhost>
				<users>
					<user name="*1" group="leader" address="****@hotmail.com" />
					<user name="*2" group="teamleader" address="*****@163.com" />
					<user name="*3" group="buildmaster" address="****@126.com" />
					<user name="*4" group="developers" address="******@qq.com" />
				</users>
				<groups>
					<group name="CTO">
						<notifications>
							<notificationType>Fixed</notificationType>
						</notifications>
					</group>
					<group name="teamleader">
						<notifications>
							<notificationType>Fixed</notificationType>
						</notifications>
					</group>
					<group name="developers">
						<notifications>
							<notificationType>Failed</notificationType>
							<notificationType>Fixed</notificationType>
						</notifications>
					</group>
					<group name="buildmaster">
						<notifications>
							<notificationType>Always</notificationType>
						</notifications>
					</group>
				</groups>
				<converters>
					<regexConverter find="{1}quot; replace="@qq.com" />
				</converters>
				<modifierNotificationTypes>
					<NotificationType>Failed</NotificationType>
					<NotificationType>Fixed</NotificationType>
				</modifierNotificationTypes>
				<subjectSettings>
					<subject buildResult="StillBroken" value="Build is still broken for {CCNetProject}" />
				</subjectSettings>
				<xslFiles>
					<file>xsl\header.xsl</file>
					<file>xsl\compile.xsl</file>
					<file>xsl\unittests.xsl</file>
					<file>xsl\modifications.xsl</file>
				</xslFiles>
				<attachments>
					<file>E:\testspace\CCnetgroup\first\other\AFile.txt</file>
					<file>Relative.txt</file>
				</attachments>
			</email>

二:一定要把邮箱的smtp打开,因为我看cc.net只支持smtp,而且大部分邮箱都默认smtp为关闭状态,由于这个原因,CCValidator会报 unused node异常; 我以qq邮箱为例,设置截图如下:




相关文章:

  • 从 中文分词 展开的 胡思乱想
  • 敏捷开发,持续集成 CruiseControl.NET 自动发布 我的一点小实践 其中配置文件替换部分挺重要...
  • 续接上篇 cc.net 自动发布web应用程序 配置文件的替换
  • 敏捷开发,持续集成 fxcop 在 CruiseControl.NET中的使用
  • 前++和后++的实现
  • 函数的调用规则(__cdecl,__stdcall,__fastcall,__pascal)
  • __declspec关键字详细用法
  • 关于C#间接继承的一些思考:如何修改继承函数的返回值类型
  • 谈谈小弟最近暗自干些什么勾当(LGame WP版开发进度汇报)
  • VC++多线程编程
  • 恐怖绝伦,SOPA和PIPA捅了网站窝!
  • 过年收拾旧货,散点Java游戏源码
  • 面向概念编程浅谈:最大限度的UI代码共用
  • C#实现字符串相似度比较[Levenshtein Distance算法]
  • windows下编译boost库
  • [数据结构]链表的实现在PHP中
  • 《剑指offer》分解让复杂问题更简单
  • 2018以太坊智能合约编程语言solidity的最佳IDEs
  • github从入门到放弃(1)
  • iOS小技巧之UIImagePickerController实现头像选择
  • Koa2 之文件上传下载
  • Logstash 参考指南(目录)
  • October CMS - 快速入门 9 Images And Galleries
  • python学习笔记 - ThreadLocal
  • Python学习之路13-记分
  • Spring Cloud Alibaba迁移指南(一):一行代码从 Hystrix 迁移到 Sentinel
  • Spring核心 Bean的高级装配
  • vue+element后台管理系统,从后端获取路由表,并正常渲染
  • vue总结
  • Vultr 教程目录
  • webpack+react项目初体验——记录我的webpack环境配置
  • WebSocket使用
  • 从伪并行的 Python 多线程说起
  • 高性能JavaScript阅读简记(三)
  • 记录一下第一次使用npm
  • 入门级的git使用指北
  • 微信公众号开发小记——5.python微信红包
  • 原生 js 实现移动端 Touch 滑动反弹
  • kubernetes资源对象--ingress
  • ​html.parser --- 简单的 HTML 和 XHTML 解析器​
  • ​LeetCode解法汇总518. 零钱兑换 II
  • #gStore-weekly | gStore最新版本1.0之三角形计数函数的使用
  • %check_box% in rails :coditions={:has_many , :through}
  • (2)MFC+openGL单文档框架glFrame
  • (二)windows配置JDK环境
  • (七)MySQL是如何将LRU链表的使用性能优化到极致的?
  • (学习日记)2024.01.19
  • (一)搭建springboot+vue前后端分离项目--前端vue搭建
  • (已解决)什么是vue导航守卫
  • .a文件和.so文件
  • .locked1、locked勒索病毒解密方法|勒索病毒解决|勒索病毒恢复|数据库修复
  • .NET Framework 4.6.2改进了WPF和安全性
  • .Net Redis的秒杀Dome和异步执行
  • .NET Standard、.NET Framework 、.NET Core三者的关系与区别?
  • .NET 中 GetProcess 相关方法的性能