Powershell hangs when called from NAnt?
LLCard <[email protected]> Wed, 4 Apr 2012 08:44:32 -0700 (PDT)
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
We are calling powershell from Nant to execute a deploy script. The script
executes properly but it never returns after completion.
I am calling this nant script from Bamboo but I have tried directly from the
command line and it hangs as well. Any ideas? Thanks in advance.
<target name="deployazurepackage" depends="azurepackage" >
<echo message="Deploy Azure app with powershell calling
deployOLHazure.ps1" />
<exec failonerror="true"
program="C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
workingdir="${build.dir}\build" verbose="true" >
<arg value="-noprofile" />
<arg value="-nologo" />
<arg value="-noninteractive" />
<arg value="-command" />
<arg value="${build.dir}\build\deployOLHazure.ps1" />
<arg value="${Azure.package.dir}" />
<arg value="${Azure.packageName}" />
<arg value="${Azure.serviceConfig}" />
<arg value="${Azure.serviceName}" />
<arg value="${Azure.storageName}" />
<arg value=";exit $LASTEXITCODE" />
</exec>
</target>
--
View this message in context: http://old.nabble.com/Powershell-hangs-when-called-from-NAnt--tp33559030p33559030.html
Sent from the NAnt - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev