$TfsDeployerBuildDetail ProcessParameters

Aug 10, 2012 at 3:36 PM
Edited Aug 10, 2012 at 4:04 PM

Hi,

How can be accessed the Process Parameters in the script?

If I try:

write-output $TfsDeployerBuildDetail.BuildDefinition.ProcessParameters["MyCustomParameter"]

I receive an error:

 Cannot convert value "MyCustomParameter" to type "System.Int32". Error: "Input string was not in a correct format."
Dec 18, 2012 at 9:47 AM

Hi daniels19,

I have bumped into the same problem. How have you been able to solve this problem?

Regards, ghockx.

Dec 18, 2012 at 11:45 AM
Edited Dec 18, 2012 at 11:45 AM

Never mind, I figured it out myself. The ProcessParameters contain an XML document. Use this to access it:

 

$xmldata = [xml]$TfsDeployerBuildDetail.BuildDefinition.ProcessParameters
$strings = $xmldata.Dictionary.String

Regards, ghockx