Re: How to setup multiple targets

Paul Willworth <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
It sounds like maybe you want to do just 1 project block that contains the build targets for each subfolder you have in there.  You can put multiple actions in your <schedule> element if you surround them all with a <composite> element.  I don't know of a way to tell it to repeat the same build action on multiple targets in one build action.  I'm not totally sure if you meant there are multiple subcomponents in your 1 project, or there are just multiple different projects.

That assumes these are multiple targets within the same project you want to show up as 1 thing in the list of projects.  If we're actually talking about multiple different projects that live in "My Projects" and you just want to perform the exact same build steps on those projects, but have them show up as separate projects, you might want to set up a script to generate your config file.  I have a stub file which contains a single "project" block of the config file, then a script which takes a list of all the projects and repeats the stub file in the generated config file replacing a stub in the right places with the project name, and also adding the header and footer of the config file.

Paul Willworth
Software Build Manger
Portland General Electric
 
-----Original Message-----
From: Fouts, Christopher [mailto:[email protected]] 
Sent: Tuesday, February 22, 2011 12:36 PM
To: [email protected]
Subject: [Cruisecontrol-user] How to setup multiple targets

I'm new to CC, but experienced in continuous integration.

In a single project, I want to set up CC to build several targets, but
do not know how to setup relative paths. So I have a project like this

<project name="Project1">
   <workingDirectory>C:\My Projects\Project1</workingDirectory>
</project>

I have several subfolders in C:\My Projects\Project1 top dir, and I want
the config file to reflect that I want to build the files in each
subfolder. How can I accomplish this? The docs vaguely mention "relative
path" but shows no example how to set it up

Surely I don't have to setup a project block for each sub-folder?

<project name="Project1">
   <workingDirectory>C:\My Projects\Project1</workingDirectory>
   <sourcecontrol>...</sourcecontrol>
   <tasks>...</tasks>
</project>

<project name="Project2">
   <workingDirectory>C:\My Projects\Project2</workingDirectory>
   <sourcecontrol>...</sourcecontrol>
   <tasks>...</tasks>
</project>

....


Any help?


----------------------------------------------------------
Chris T Fouts


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.