Thanks folks, I'll keep looking into my environment. I AM running the
service with the login credentials that runs the console session. One
that that struck me over the weekend is the ${testFilesDirectory}
value is actually a mapped drive on the current login session. I'll
create a map drive in the Nant script itself and I bet that'll fix it
since this is what I do in other scripts.

-chris

On Apr 27, 12:24 pm, Rolando Valdivia <[email protected]>
wrote:
> Sometimes is a good idea to create an exclusive build user (local or
> domain), configure the service with this account and login to the build
> machine with that user to avoid this kind of problems. If everything is
> configured to run with your personal account, everything will stop working
> if your account is disabled for some reason.
>
> Rolando
>
> El 27 de abril de 2012 12:16, Rolando Valdivia
> <[email protected]>escribió:
>
>
>
>
>
>
>
> > When you have this kind of differences between console and service,
> > remember that the service runs with certain user credentials and console is
> > running with your current credentials.
>
> > Environment variables can also be per user or machine.
>
> > Verify that the service credentials can access your environment variables,
> > certificates and other resources that may be accessoble to your current
> > user only.
>
> > Rolando
> > El 27/04/2012 11:53, "Chris" <[email protected]> escribió:
>
> > I don't think this is a Nant issue since the differentiating factor is
> >> how ccnet is run, console vs. service, so I'm asking here.
>
> >> I call a nant script from ccnet, and I have the following Nant
> >> target.
>
> >>   <target name="deleteLockFiles">
> >>      <exec program="${cmdexe}" commandline="/C dir &quot;$
> >> {testFileDirectory}&quot;" />
> >>      <delete>
> >>         <fileset>
> >>            <include name="${lockFiles}" />
> >>         </fileset>
> >>      </delete>
> >>   </target
>
> >> When ccnet is running as a console, I'm able execute the <exec> call
> >> that lists the directory contents. Of course simply executing the nant
> >> script from command line works too.
>
> >> But when I'm running ccnet as as service, I get
>
> >>    <task name="exec">
> >>      <message level="Warning"><![CDATA[The system cannot find the
> >> path specified.]]></message>
> >>      <duration>218.7906</duration>
> >>    </task>
>
> >> Any clues?

Reply via email to