def psScript = """
\$msbuild = "${bcad.msbuild_current}"
\$options = "${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg.
replace('"', '`"').replace('%CD%', '$PSScriptRoot')} /t:Build"
Invoke-Expression "& '\$msbuild' \$options"
""";
powershell returnStatus: false, script: psScript

is doing the trick, have to replace the " and the %CD% which was a batch 
path replacement. Now it seem to work. Will make it compile a lot over the 
weekend to see if this hang as much as batch was.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1ef730ea-6014-453e-bd5b-7d82683a9091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to