Re: modificationWriter like ccnet

Steve Murphy <[email protected]> Fri, 31 Aug 2012 10:55:21 +0100
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
In my configuration I have a currentbuildstatuslistener defined.  This creates a file in the cruisecontrol/logs/<project> folder that contains the time the project last executed (in YYYY-MM-DDTHH:MM:SS format).

   waiting for next time to build since
   2012-08-31T09:38:21
   progress: 2012-08-31T09:38:21 next build in 5 minutes 

Looking at the last ‘Debugging suggestions’ email from Keith svn can use these date-time stamps to grab a list of modifications.  You could have a script that extracts the time from this file, gets the current time, formats it and then execute the following svn command to get the list.
    svn log C:\cruise\projects\myproj\mysourcecode --non-interactive --xml -v -r"{2012-08-25T08:00:37}:{2012-08-31T08:00:37}" > svn_mod.xml

You can drop the ‘—xml’ argument and get plain text output.

Not sure how you can get the time on UNIX (maybe Perl).  I was able to get the time using a VBScript on Windows.

Regards,
Steve 

From: Adam Bruss 
Sent: 30 August 2012 18:44
To: [email protected] 
Subject: Re: [Cruisecontrol-user] modificationWriter like ccnet

I need it at the start of the build to tell the developers the build is starting. 

 

Adam Bruss

Senior Development Engineer

AWR Corporation

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: Thursday, August 30, 2012 8:56 AM
To: [email protected]
Subject: Re: [Cruisecontrol-user] modificationWriter like ccnet

 

Hi Adam,

 

I enquired about something similar sometime ago when setting up a task to email developers at the start of the cruise build.  The answer then was there was no easy way to get this information using CruiseControl.  

 

We use subversion for our version control and my cruisecontrol.log file displays ‘SVNBootstrapper  - U ‘ messages for each of the files it’s updating.  Could try extract the information from there, although if you have more than one project running on the same CruiseControl server it could get quite complicated to determine which update belongs to which project.

 

When do you need this information?  The log123456789.xml file in the cruisecontrol project logs folder contains this information, however I think this file is only produced at the end of the build, .  You could extract everything between the  <modifications> & </modifications> tags and then use a style sheet to format it (maybe even the same modifications.xsl file used by CruiseControl)

 

Regards,

Steve

 

From: Adam Bruss 

Sent: 30 August 2012 03:24

To: [email protected] 

Subject: [Cruisecontrol-user] modificationWriter like ccnet

 

Do you guys know if Cruisecontrol has anything like the modificationWriter task in Cruisecontrol.net where the modifications are written to a file in xml format for later use?

 

Adam Bruss

Senior Development Engineer

AWR Corporation

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

 


--------------------------------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ 


--------------------------------------------------------------------------------

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user



--------------------------------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ 


--------------------------------------------------------------------------------
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user