Thank you Helmut. This looks like a very viable solution. I'm going to try the exec commands first as they are more in line with what has been done thus far. If I cannot get those to work, I will try powershell.
Thank you very much for the response. rbr On Apr 7, 7:02 am, Helmut <[email protected]> wrote: > I use a PowerShell script to start and stop services for some of our > solutions. The config is below > > <exec> > <executable>C:\WINDOWS\system32\windowspowershell > \v1.0\powershell.exe</executable> > <baseDirectory>C:\PowerShell\</baseDirectory> > <buildArgs>.\FitNesseServices.ps1 devweb1</buildArgs> > <buildTimeoutSeconds>20</buildTimeoutSeconds> > </exec> > <buildpublisher> > <sourceDir>c:\work\sc_dev_build\ProjectsV2\EdfinancialPreapproval > \Preapproval_deploy\Dev\</sourceDir> > <publishDir>\\devweb1\Projects\EdfinancialPreapproval\Preapproval > \</publishDir> > <useLabelSubDirectory>false</useLabelSubDirectory> > </buildpublisher> > <exec> > <executable>C:\WINDOWS\system32\windowspowershell > \v1.0\powershell.exe</executable> > <baseDirectory>C:\PowerShell\</baseDirectory> > <buildArgs>.\FitNesseServices.ps1 devweb1 start</buildArgs> > <buildTimeoutSeconds>20</buildTimeoutSeconds> > </exec> > > On Apr 7, 2:11 am, Ruben Willems <[email protected]> wrote: > > > Hi > > > can you post your ccnet.config > > or at least the project > > > with kind regards > > Ruben Willems > > > On Tue, Apr 7, 2009 at 12:31 AM, rbr <[email protected]> wrote: > > > > No, I am trying to start and stop a service of ours. However, when I > > > put the exec tasks in to the config, the ccnet service cannot be > > > started. > > > > Does that make sense? Sorry if this is confusing. > > > > rbr > > > > On Apr 6, 4:02 pm, Ruben Willems <[email protected]> wrote: > > > > hi > > > > > are you trying to stop and start ccnet from within ccnet? > > > > > with kind regards > > > > Ruben Willems > > > > > On Mon, Apr 6, 2009 at 11:14 PM, rbr <[email protected]> wrote: > > > > > > Thank you Hans. Unfortunately, in my environment, it is not a trivial > > > > > matter to get approval to add a new tool like NAnt. I am working on it > > > > > however. > > > > > > Ruben, I tried following the directions in this link and received an > > > > > error where the CC service would not start with these commands in > > > > > there. These are supposed to reside within the Tasks section correct? > > > > > > Best, > > > > > > rbr > > > > > > On Apr 3, 12:43 pm, Hans Van Eylen <[email protected]> wrote: > > > > > > Hi, > > > > > > you could use a NAnt task in CCNet. Basically you call a NAnt build > > > file > > > > > > which uses the servicecontroller task to stop/start services on > > > > > > local > > > or > > > > > > remote machines : > > > > >http://nant.sourceforge.net/release/latest/help/tasks/servicecontroll. > > > .. > > > > > > > Hans > > > > > > > 2009/4/3 rbr <[email protected]> > > > > > > > > Hello, > > > > > > > > I am fairly new to cruise control and am trying to find a way to > > > stop > > > > > > > a service prior to my triggered MSBuild task and re-start it after > > > the > > > > > > > build is complete. I know this can be done in MSBuild. However, > > > > > > > the > > > > > > > MSBuild is shared accross environments that do not all want this > > > > > > > behavior implemented. So, I would like to be able to add it to the > > > > > > > CCNet.config file. I tried adding NET STOP and NET START commands > > > in > > > > > > > the tasks section. But this apparently does not work. At least not > > > the > > > > > > > way I did it. > > > > > > > > Thanks in advance. > > > > > > > > rbr- Hide quoted text - > > > - Show quoted text -
