@@ -38,6 +38,21 @@ Of the format:
3838}
3939```
4040
41+ . PARAMETER TemplateParametersJson
42+ YAML runtime template parameters to provide to the pipeline execution. Unlike
43+ BuildParametersJson (which sets pipeline variables that must be marked settable
44+ at queue time), these override values declared in the pipeline's `parameters:`
45+ block.
46+
47+ Of the format:
48+
49+ ```json
50+ {
51+ "parameter1": "value1",
52+ "parameter2": "value2"
53+ }
54+ ```
55+
4156#>
4257
4358[CmdletBinding (SupportsShouldProcess = $true )]
@@ -64,7 +79,10 @@ param(
6479 [string ]$BearerToken = $null ,
6580
6681 [Parameter (Mandatory = $false )]
67- [string ]$BuildParametersJson
82+ [string ]$BuildParametersJson ,
83+
84+ [Parameter (Mandatory = $false )]
85+ [string ]$TemplateParametersJson
6886)
6987
7088. (Join-Path $PSScriptRoot common.ps1)
@@ -105,7 +123,8 @@ try {
105123 - DefinitionId $DefinitionId `
106124 - Base64EncodedToken $Base64EncodedToken `
107125 - BearerToken $BearerToken `
108- - BuildParametersJson $BuildParametersJson
126+ - BuildParametersJson $BuildParametersJson `
127+ - TemplateParametersJson $TemplateParametersJson
109128}
110129catch {
111130 LogError " Start-DevOpsBuild failed with exception:`n $_ "
0 commit comments