Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Advanced Build Parameters does not show

I need to add Pre-build script path parameter to my build definition file. I do not see where it is accepting the parameter nor does it show much under Advanced Builds as shown below: enter image description here

When looking at the build process template file GitTemplate.12.xaml, it shows that it should accept more parameters as seen in AdvancedBuildSettings:

enter image description here

The value for the parameter is, as you can see, PostActionScriptPath parameter is there:

New Microsoft.TeamFoundation.Build.Common.BuildParameter(" { ""MSBuildArguments"": """",
""MSBuildPlatform"": ""Auto"", ""PreActionScriptPath"": """",
""PreActionScriptArguments"": """", ""PostActionScriptPath"": """",
""PostActionScriptArguments"": """", ""RunCodeAnalysis"": ""AsConfigured"" } ")

Anyone knows how to turn this parameter on so I can enter a value for PreActionScriptPath? This also happens in another build definition that clearly shows that it accepts a parameter in the .xaml file.

like image 482
Shawn Mclean Avatar asked Sep 04 '13 18:09

Shawn Mclean


1 Answers

When editing the build process template, go to the Arguments, look for Metadata and edit the value. Look for the parameters that are not showing, click them then on the right hand side for the label View this parameter when: and select Always show the parameter.

like image 54
Shawn Mclean Avatar answered Nov 19 '22 19:11

Shawn Mclean