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
_______________________________________________
NAnt-users mailing list
NAnt-users@list...
https://lists.sourceforge.net/lists/listinfo/nant-users
opensubscriber is not affiliated with the authors of this message nor responsible for its content.