Hello,

I'm running the latest ccnet server version, 1.8.0.0, on a win2008 R2 
server (64bit). When running a powershell task I get the exception at the 
bottom of this message. The execution policy is set to unrestricted (to be 
sure), both for the 32bit and the 64bit version of powershell.

For some reason the task appends folders that indeed do not exist to my 
script paths.

The node in my project is the following:

<powershell>
                <description>Updating version number of the 
host</description>
                <script>build/tool/msvs/versionupdater.ps1</script>
                <buildArgs>/modules/host/</buildArgs>
            </powershell>


Anybody any idea what I can do? I never had this before and I've used this 
script often on several ccnet servers.

<exception><![CDATA[ThoughtWorks.CruiseControl.Core.Tasks.BuilderException: 
Unable to execute: FileName: 
[C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe] -- Arguments: 
[-nologo -NoProfile -NonInteractive -file 
"C:\Users\Administrator\Documents\WindowsPowerShell\build/tool/msvs/versionupdater.ps1"
 /modules/host/] -- WorkingDirectory: 
[C:\Users\Administrator\Documents\WindowsPowerShell\] -- StandardInputContent: 
[] -- Timeout: [600000]
System.IO.DirectoryNotFoundException: Directory does not exist: 
C:\Users\Administrator\Documents\WindowsPowerShell\
   at ThoughtWorks.CruiseControl.Core.Util.ProcessInfo.CreateProcess()
   at 
ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.RunnableProcess..ctor(ProcessInfo
 processInfo, String projectName, String publicArgs)
   at ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.Execute(ProcessInfo 
processInfo)
   at 
ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.AttemptToExecute(ProcessInfo
 info) ---> System.IO.DirectoryNotFoundException: Directory does not exist: 
C:\Users\Administrator\Documents\WindowsPowerShell\
   at ThoughtWorks.CruiseControl.Core.Util.ProcessInfo.CreateProcess()
   at 
ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.RunnableProcess..ctor(ProcessInfo
 processInfo, String projectName, String publicArgs)
   at ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.Execute(ProcessInfo 
processInfo)
   at 
ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.AttemptToExecute(ProcessInfo
 info)
   --- End of inner exception stack trace ---
   at 
ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.AttemptToExecute(ProcessInfo
 info)
   at 
ThoughtWorks.CruiseControl.Core.Tasks.PowerShellTask.Execute(IIntegrationResult 
result)
   at ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.Run(IIntegrationResult 
result)
   at ThoughtWorks.CruiseControl.Core.Project.RunTask(ITask task, 
IIntegrationResult result, Boolean isPublisher)
   at ThoughtWorks.CruiseControl.Core.Project.RunTasks(IIntegrationResult 
result, IList tasksToRun, Dictionary`2 parameterValues)
   at ThoughtWorks.CruiseControl.Core.Project.Run(IIntegrationResult result)
   at 
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Build(IIntegrationResult 
result)
   at 
ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest 
request) BaseDirectory: C:\Users\Administrator\Documents\WindowsPowerShell\, 
PowerShell: powershell.exe]]></exception>



Reply via email to