I had tried many times..I use CC.NET 1.4.0.3524
1.works
2.no email
3.errors as below
Exortech.NetReflector.NetReflectorException: Missing Xml node
(address) for required member
(ThoughtWorks.CruiseControl.Core.Publishers.EmailUser.Address).
   於
Exortech.NetReflector.XmlMemberSerialiser.CheckIfMemberIsRequired()
   於 Exortech.NetReflector.XmlMemberSerialiser.Read(XmlNode node,
NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlTypeSerialiser.ReadMembers(XmlNode node,
Object instance, NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlTypeSerialiser.Read(XmlNode node,
NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlDictionarySerialiser.Read(XmlNode node,
Type instanceType, NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlMemberSerialiser.Read(XmlNode node,
NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlTypeSerialiser.ReadMembers(XmlNode node,
Object instance, NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlTypeSerialiser.Read(XmlNode node,
NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlArraySerialiser.Read(XmlNode node, Type
instanceType, NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlMemberSerialiser.Read(XmlNode node,
NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlTypeSerialiser.ReadMembers(XmlNode node,
Object instance, NetReflectorTypeTable table)
   於 Exortech.NetReflector.XmlTypeSerialiser.Read(XmlNode node,
NetReflectorTypeTable table)
   於 Exortech.NetReflector.NetReflectorReader.Read(XmlNode node)
   於
ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader.Read(XmlDocument
document)

On 10月15日, 下午10時05分, "Kurt Frank" <[EMAIL PROTECTED]> wrote:
> One other way that I talked about in another thread.  If the source control 
> name does not match their email address.
>
> <users/>
> <groups/>
> <converters>
>        <regexConverter find="$" replace="@Texas.com" />
>
>        <regexConverter find='Marion Robert Morrison' replace='JohnWayne' />
> </converters>
>   <modifierNotificationTypes>
>        <NotificationType>Failed</NotificationType>
>        <NotificationType>Fixed</NotificationType>
>    </modifierNotificationTypes>
>
> Later,
>
> KMF
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
> Ruben Willems
> Sent: Wednesday, October 15, 2008 3:03 AM
> To: [email protected]
> Subject: [ccnet-user] Re: EmailPublisher and Converters
>
> Hi
>
> There are a couple of ways to define users and how they will receive a mail,
> read the manual 
> athttp://confluence.public.thoughtworks.org/display/CCNET/Email+Publisher
>
> A quick explanation :
> Suppose you have a user in your source control name JohnWayne
> and you would like that CCNet mails him if he breaks the build.
> You can have the following setups :
>
> ° 1 : hard code it
>  <users>
>     <user name="JohnWayne"  address="[EMAIL PROTECTED]"/>
> </users>
> <groups/>
>  <modifierNotificationTypes>
>       <NotificationType>Failed</NotificationType>
>       <NotificationType>Fixed</NotificationType>
>    </modifierNotificationTypes>
>
> ° 2 : use a converter : all users from source control will get their name 
> transformed into an mail adres with the same logic
> <users/>
> <groups/>
> <converters>
>        <regexConverter find="$" replace="@Texas.com" />
> </converters>
>   <modifierNotificationTypes>
>        <NotificationType>Failed</NotificationType>
>        <NotificationType>Fixed</NotificationType>
>     </modifierNotificationTypes>
>
> Now with the above setup CCNet will only mail John Wayne when the build is 
> broken or fixed, AND he did something to the source.
> Suppose you want that he receives a mail, even if he did not do anything with 
> the source, you must place him in a group.
>
> ° 3
>  <users>
>     <user name="JohnWayne"  group="devs"/>
> </users>
> <groups>
>         <group name="devs" notification="change"/>
>   </groups>
>
> <converters>
>        <regexConverter find="$" replace="@Texas.com" />
> </converters>
>
>  <modifierNotificationTypes>
>       <NotificationType>Failed</NotificationType>
>       <NotificationType>Fixed</NotificationType>
>    </modifierNotificationTypes>
>
> Now with this setup, I still use the converter tag so I do not have to 
> specify his email adress, but this is not required.
> And John Wayne will now get a mail if someone else breaks the build of this 
> project.
>
> Hope this clears it out a bit
>
> with kind regards
> Ruben Willems
>
> 2008/10/15 Edwin <[EMAIL PROTECTED]>
>
> no errors and no email...if I leave users tag empty,cc.net will send
> to whom?
> and who is belong the buildmaster?
> I can send mail if I have use address.I just wonder to understand and
> give it a try with convert tag
> Thanks..^^
>
> On 10月14日, 下午8時17分, Alex <[EMAIL PROTECTED]> wrote:
>
>
>
> > Here is a working example of one that will only send an email to a dev
> > who broke the build. Hope this helps getting it working.
>
> > <email from="[EMAIL PROTECTED]"
> > mailhost="emailserver.mycomapny.com" includeDetails="True">
> >       <users />
> >       <groups>
> >         <group name="buildmaster" notification="failed"/>
> >       </groups>
> >       <converters>
> >         <regexConverter find="$" replace="@mycompany.com" />
> >       </converters>
> >       <modifierNotificationTypes>
> >         <NotificationType>Failed</NotificationType>
> >       </modifierNotificationTypes>
> >     </email>
>
> > On Oct 14, 4:12 am, "Ruben Willems" <[EMAIL PROTECTED]> wrote:
>
> > > Hi
>
> > > There is a users tag needed.
> > > it may be empty : <users />
>
> > > The converters can reduce the configuration if all the ids of the
> > > sourcecontrol can
> > > be mapped to an email adres, following a certain 'logic'
> > > for the moment there is the regex converter
> > > --> this applies regular expressions on the username
> > > check the docs 
> > > athttp://confluence.public.thoughtworks.org/display/CCNET/Email+Publisher
>
> > > with kind regards
> > > Ruben Willems
>
> > > 2008/10/14 Edwin <[EMAIL PROTECTED]>
>
> > > > if no user tag or empty users tag,it still report errors.
> > > > how converts tag can help to reduce configuration text?
> > > > Thanks Alex.
> > > > On 10月3日, 下午7時34分, Alex <[EMAIL PROTECTED]> wrote:
> > > > > You either need a user tag with an email or no user tag at all.
> > > > > Personally, as we can map everyone, we just have an empty users tag
> > > > > with no user tags at all defined.
>
> > > > > On Oct 3, 5:48 am, Edwin <[EMAIL PROTECTED]> wrote:
>
> > > > > > I want to use Converts to convert email like document mention.
> > > > > > The <converters> configuration specifies rules for transforming user
> > > > > > names (from <user> elements) to email addresses in cases where the
> > > > > > <user> element does not specify an address. The converters are 
> > > > > > ignored
> > > > > > when the <user> element specifies an address.
> > > > > > But in <user> tags if I don't specify an address,cc.net service 
> > > > > > would
> > > > > > throw exception said that <user> tags need an attribute address...is
> > > > > > that a bug or my fault?
> > > > > > I use CC.Net 1.4.0.3524. Thanks for help- 隱藏被引用文字 -
>
> > > > > - 顯示被引用文字 -- Hide quoted text -
>
> > > - Show quoted text -- 隱藏被引用文字 -
>
> > - 顯示被引用文字 -- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

Reply via email to