From: Jeffrey F. <jt...@ag...> - 2004-12-27 19:00:54
|
I think CC already does what you want. It will pass along to Ant a = property named "label" that is the current value of the CC label. http://cruisecontrol.sourceforge.net/main/configxml.html#buildproperties So in your Ant script you can get the value by using ${label}. Jtf -----Original Message----- From: Whitlock, Jeremy x66075 Sent: Monday, December 27, 2004 10:55 AM Jtf,=20 My company wants to create an subversion snapshot each time we = do a CruiseControl build. By doing this, we have naming conventions that = will rely on the CruiseControl build label and I need to get the = CruiseControl build label so that when I do an "svn copy", I can use the build label = in the directory name of the "svn copy". For example, if the current build label is "build123", my "svn copy" would create a directory called "cipPROJECTNAME.build123" in the branches directory of my svn = repository. I cannot do this if I cannot get the current build label from = CruiseControl. I have a few ideas on how to do this. My first ideas was to use JMX to = get the build label but MX4J isn't version compatible and I don't know what version of MX4J CC-2.1.6 uses. I think it's 1.1.1 but no matter what version of MX4J I use, I get an illegal class version error for = ObjectName. I'm working with MX4J people right now to resolve this but even they say = it doesn't make any sense. My next idea was to have a boostrapper for CruiseControl to write the current CruiseControl JMX properties to a properties file and have the build.xml import that. That is a good = idea, which I might use, but right now, CruiseControl doesn't support a bootstrapper for Execute like it does for the publishers. I can create = one but I'm hoping the first option will pan out. Sorry if this is lengthy...just been trying to get this to work for 3 days now and I've = made no progress. Got any ideas? Take care, Jeremy -----Original Message-----=20 From: Jeffrey Fredrick [mailto:jt...@ag...]=20 Sent: Monday, December 27, 2004 11:46 AM=20 To: 'Whitlock, Jeremy x66075'; 'CruiseControl (E-mail)'=20 Subject: RE: [Cruisecontrol-user] RE: CruiseControl JMX Properties=20 I'm sorry, I'm not quite clear what you hope to make happen.=20 You want to use the CC build label in your ant build?=20 You want to set it the CC build label from another tool?=20 Is this something where a custom label incrementer would do the job? = Rather than pushing the value into CC via jmx the incrementer could go fetch = the=20 the new value before attempting to build.=20 Jtf=20 -----Original Message-----=20 From: Whitlock, Jeremy x66075=20 Sent: Monday, December 27, 2004 10:31 AM=20 CC-List,=20 Anyone? I need to get the current build label from CC using an = external application so that ant can use this. Thanks, Jeremy=20 -----Original Message-----=20 From: Whitlock, Jeremy x66075=20 Sent: Friday, December 17, 2004 11:26 AM=20 To: CruiseControl (E-mail)=20 Subject: CruiseControl JMX Properties=20 CC-List,=20 I need to be able to get to the JMX properties and modify = them.=20 I want to do this the "CruiseControl" way so that I don't screw anything = up. Can anyone give me their suggestions? Thanks, Jeremy=20 This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and = confidential. If the reader of the message is not the intended recipient or an = authorized representative of the intended recipient, you are hereby notified that = any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by = e-mail and delete the message and any attachments from your system.=20 |