Re: Sending an email as the build starts
Julian Simpson <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Steve, Not sure you can easily get the modification set into a boostrapper. You might be able to get properties passed down to work something out from your version control system, but it seems like a lot of extra work. Julian. On 8 March 2011 09:35, Steve Murphy <[email protected]> wrote: > Sorry it just occurred to me I should mention I’m using the java version > of CruiseControl. > > *From:* Steve Murphy <[email protected]> > *Sent:* Tuesday, March 08, 2011 9:29 AM > *To:* [email protected] > *Subject:* Re: [Cruisecontrol-user] Sending an email as the build starts > > Thanks guys. I’ve got the mail task setup and sending mails, I just > need figure out how to style it now (I’m a novice with ANT & XSL so I may > well be asking for some tips later) > > <target name="STARTMAIL" description="Send mail saying the build has > started" > > <mail mailhost="myserver.mydomain.com" mailport="25" > subject="CC-${label} HAS STARTED" messagefile="${emailMessageFile}" > charset="utf-8"> > <from [email protected]/> > <to address="[email protected]"/> > </mail> > </target> > > I use a composite schedule section to execute various ant targets, so I’ll > be calling that as one of the first tasks. It hasn’t been requested, but > I’m anticipating it will be, how would I get a list of the modifications > included in the email? From what I can tell the result email gets them from > the log20110307162148.xml file, which seems to only be created once the > build has finished. > > Is there a way to get the modifications list earlier in the build process > and pipe it to a file? (I’m using the SVN modification set, not sure if that > is relevant.) > > Regards, > Steve > > *From:* Julian Simpson <[email protected]> > *Sent:* Monday, March 07, 2011 9:29 PM > *To:* [email protected] > *Subject:* Re: [Cruisecontrol-user] Sending an email as the build starts > > On 7 March 2011 15:54, Adam Bruss <[email protected]> wrote: > >> Hi Steve, >> >> No I don’t think CC can send email anytime but at the end of the build >> process. What I’m talking about is using the ant mail task to send email. We >> made the emails look like the >> > > That was my point, too. And I'd reuse the stylesheets, if you're sending > mail from the server, > > J. > > >> ones cruisecontrol sends by using the modifications.xsl as a base and >> making some mods. For example in our modded modifications.xsl there is a >> style section that presumably takes things directly from cruisecontrol.css. >> >> >> <style type="text/css"> >> >> body, table, form, input, td, th, p, textarea, select >> >> { >> >> font-family: verdana, helvetica, arial; >> >> font-size: 9pt; >> >> } >> >> >> >> a:hover { color:#FC0; } >> >> >> >> .main-panel { color:#FC0; } >> >> >> >> .section-table { margin-top:10pt; } >> >> .sectionheader { background-color:#006; color:#FFF; } >> >> .section-data { font-size:8pt; color:#000; } >> >> .section-oddrow { background-color:#F0F7FF; } >> >> .section-evenrow { background-color:#FFF; } >> >> .section-changenumber { background-color:#CFFFCC; } >> >> </style> >> >> >> >> We use the Nant <style> task to transform xml changes to html. >> >> Adam Bruss >> >> Development Engineer >> >> AWR Corporation/Simulation Technology & Applied Research >> >> 11520 N. Port Washington Rd., Suite 201 >> >> Mequon, WI 53092 USA >> >> P: 1.262.240.0291 x104 >> >> F: 1.262.240.0294 >> >> E: [email protected] >> >> W: http://www.awrcorp.com >> >> *From:* Steve Murphy [mailto:[email protected]] >> *Sent:* Monday, March 07, 2011 9:30 AM >> *To:* [email protected] >> *Subject:* Re: [Cruisecontrol-user] Sending an email as the build starts >> >> Thanks for the responses, I’ll respond to them all here instead of >> individually. >> >> Adam, I already have a htmlemail publisher configured to run at the end of >> the project to send out the test results. Can I have this executed multiple >> times at different points during the project? >> >> Julian, with the Ant Bootstrapper, Is your thinking to have this use the >> ant Mail task to send the email? Could I get this to use the same style >> sheets the htmlemail publisher uses? >> We have all the tests run over night and the triggered builds only run the >> tests for the current development effort. So I have stayed away from having >> timeouts for the ant targets as the number of tests change frequently. >> >> Antoine, your suggestion is similar to Adam’s correct? Or do I >> misunderstand what your saying? >> >> The dashboard and/or CC Config is a good idea, I will remind the >> developers they exist and see if that meets their requirements. >> The in house application we use to run the tests is suppose to monitor the >> tests and move things on when individual test actions timeout, however once >> in a while things go horribly wrong and everything comes to a stand still . >> This happened to other day (build stalled for the entire weekend) which >> prompted the request for the start email. >> >> Regards, >> Steve Murphy >> >> P.S Resending a cut down email as my other one was too large (included my >> config.xml) >> >> *From:* Adam Bruss <[email protected]> >> >> *Sent:* Wednesday, March 02, 2011 8:35 PM >> >> *To:* [email protected] >> >> *Subject:* Re: [Cruisecontrol-user] Sending an email as the build starts >> >> I think your best bet is sending the mail at the start of your build >> process. The task would gather the changes, format them into an email body >> and send it using your builder’s mail task. That’s how we do it at least in >> Nant. >> >> Adam Bruss >> >> Development Engineer >> >> AWR Corporation/Simulation Technology & Applied Research >> >> 11520 N. Port Washington Rd., Suite 201 >> >> Mequon, WI 53092 USA >> >> P: 1.262.240.0291 x104 >> >> F: 1.262.240.0294 >> >> E: [email protected] >> >> W: http://www.awrcorp.com >> >> *From:* Steve Murphy [mailto:[email protected]] >> *Sent:* Wednesday, March 02, 2011 7:00 AM >> *To:* [email protected] >> *Subject:* [Cruisecontrol-user] Sending an email as the build starts >> >> Hello, >> >> At the request of one of the developers that use the CruiseControl system >> I maintain, I’m looking for a way to send out an email when a build starts. >> He reasoning being that after receiving the start email if he does not >> receive the pass/fail email within x minutes he knows something has gone >> wrong and the system needs looking at. >> >> I have though about having another project use the file system >> modification set to detect a file that is created by the main project, this >> project would probably only contain an email publisher. However before I do >> this I thought I’d check if there was anything in the configuration that >> might already do this. >> >> Thanks >> >> Steve Murphy >> -- >> > Julian Simpson > The Build Doctor Ltd. > http://www.build-doctor.com > [email protected] > (+44) 207 183 0323 > > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > ------------------------------ > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > > ------------------------------ > _______________________________________________ > > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > > > ------------------------------------------------------------------------------ > What You Don't Know About Data Connectivity CAN Hurt You > This paper provides an overview of data connectivity, details > its effect on application quality, and explores various alternative > solutions. http://p.sf.net/sfu/progress-d2d > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > -- Julian Simpson The Build Doctor Ltd. http://www.build-doctor.com [email protected] (+44) 207 183 0323 ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user