Hi
Nice point about the pending state, I forgot that one :-(
About the StartsWith("Deployment") thing
I only stopped the CI projects at work, because I first sent a mail that I
will update ccnet.
But indeed, maybe it is better to just filter on the project names, so just
exclude the 2 projects that will start / stop the others.
Updating my script here ...
with kind regards
Ruben Willems
On Wed, May 13, 2009 at 1:59 AM, Arieh Schneier <[email protected]>wrote:
>
> This sounds like you could use the same thing I did in the response
> from 'Pause Until Cancelled Project' thread (ie the script found here:
> http://rubenwillems.blogspot.com/).
>
> Build that script to make it an executable, then have a project which
> runs it (highest priority) with stop, then another project (also
> highest priority) that runs it with start.
>
> Only thing I would point out is with these 2 lines:
>
> If Not project.Category.StartsWith("Deployment") Then
>
> If project.Activity =
> Remote.ProjectActivity.Sleeping AndAlso StopProjects Then
>
> In the first line make sure you StartsWith includes these 2 projects
> so they don't get stopped. In the second line I removed the first
> condition, I'm not sure why its there.... Because you also want to
> cancel projects that are 'Pending', there shouldn't be any currently
> running as this script should be running (if you run it via a
> project).
>
> Lastly don't forget to change "tcp://buildserver:21234" to something
> like "tcp://localhost:21234" (to make it more generic, or to your
> server, or passed in...).
>
> PS if you stop a running project does it cancel it, or does it switch
> it to stopped after it finishes?
>
> Arieh
>
> On May 13, 3:03 am, cloudsin <[email protected]> wrote:
> > Hi,
> >
> > I am planning to implement a blackout point in CCNET. The requirement
> > is everyday source repository goes down for 30 min. I want to
> > implement a blackout point where I want to specify the down time so
> > that none of the projects that are included in CCNET doees not throw
> > any exception. I want to continue the process once the source
> > repositary is up. I wanted to add this in Google groups.
> > Unfortunately
> > access to Google groups not allowed here. Please help me out in this.
> >
> > Thanks in advance..
>