Hi Markus,
This is a good idea and one that is reasonably easy to implement - so I have
added it to the latest build.
As an example, you can now use the following task to stop all the projects
on a server:
<cruiseServerControl>
<actions>
<controlAction>
<project>*</project>
<type>StopProject</type>
</controlAction>
</actions>
</cruiseServerControl>
The project uses the standard Windows wildcard mappings - i.e. * and ?. You
can use these to build a "pattern" of projects to apply the commands to
(e.g. "*-Build", "Project?", etc.)
If you want a client-side app, the options are using something like
FastForward.NET (as suggested by Christophe - available from
http://www.ohloh.net/p/FastForwardNET/download) or building your own custom
program (as suggested by Ruben).
One thing to note with these (and any other approach for sending a stop
command), the stop command will change the project state to Stopping. If
there is a build in progress it will remain in this state until the build
has finished and then transition to Stopped. If there is no build it will
change immediately to Stopped. So if the stop command does not work
immediately, this is probably why.
Hope this helps,
Craig
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of MarkusW
Sent: Friday, 12 March 2010 7:11 a.m.
To: ccnet-user
Subject: [ccnet-user] Re: Stop all projets at once
What about using a star for the project name or an empty project
name?
e.g. <controlAction type="StopProject" project="*" />
Will this automatically stop all projects?
Markus
On 11 Mrz., 10:32, JayFleming <[email protected]>
wrote:
> Hi Markus,
>
> If you're on version 1.5+ you could have a control project that ran
> multiple CruiseServerControl tasks to shut down all the projects from
> one
clickhttp://confluence.public.thoughtworks.org/display/CCNET/CruiseServer+..
..
>
> There is the pain of setting up the 50+ tasks initially, but it could
> be more practical in the end...the control project could just be
> scheduled to shut everything down 5 minutes before your source VM is
> taken offline.
>
> Cheers,
> Jay