I have a build script that sends an e-mail with an edit in which the details of svn changes for the module Will happen.
This works if I have an email address with a hard working, but now I want to email many developers and the script is failing, the code below is
& Lt; Target name = "update mail notification" dependencies = "zip agent" condition = "! Exists ('BUILD_IS_PERSONAL')" & gt; & Lt; ReadLinesFromFile file = "$ (BuildDir) \ $ (recipient listfile name)" & gt; & Lt; Output Property Name = "Recipient" WorkPametor = "Lines" / & gt; & Lt; / ReadLinesFromFile & gt; & Lt; Mail = "$ (senderEmail)" body = "from =" $ (sender) "from SmtpServer =" $ (smptServer) "is a list of changes made after the previous release." Topic = "This module has been updated. You may want to update." Attachment = "$ (build builder) \ Builds \ $ (svnChangeFileName)" /> & Lt; / Target & gt;
If I change the line to read $ (recipients) then the first person on the list will receive an email, the subsequent addresses do not receive the email
Then I changed the line below which you have seen below (recipients), as you can, then every recipient will have to score it is not a destiny !!! I get an error message
email "{0}" & lt; Path & gt; Error: A recipient must be specified.
The file I read is only a text file in the format (email address 1), (email address 2), etc.
Reads a list of items from the ReadLinesFromFile text file. But each line in the file should have one item.
With the format of your text file (emailAdress1), email address 2) ... you will only have an item containing (emailAdress1), emailAddress2) ... . Your email. Txt should be like this:
email address 1 email address 2 ...
You do not receive items from ReadLinesFromFile function, not properties, therefore Modify your task:
& lt; Target name = "update mail notification" dependencies = "zip agent" status = "! Exists ('BUILD_IS_PERSONAL')" & gt; & Lt; ReadLinesFromFile file = "$ (BuildDir) \ $ (recipient listfile name)" & gt; & Lt; Output ItemName = "Recipient" WorkPametor = "Rows" / & gt; & Lt; / ReadLinesFromFile & gt; & Lt; Mail = "$ (senderEmail)" body = "from =" $ (sender) "from SmtpServer =" $ (smptServer) "is a list of changes made after the previous release." Topic = "This module has been updated. You may want to update." Attachment = "$ (build builder) \ Builds \ $ (svnChangeFileName)" /> & Lt; / Target & gt;
(A bug in the mail target's log, even with many recipients, will be shown in the first log.)
Comments
Post a Comment