mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
pipeline file changes
This commit is contained in:
parent
9a97d15e84
commit
77d1d14f5e
1 changed files with 3 additions and 3 deletions
|
|
@ -30,13 +30,13 @@ steps:
|
||||||
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls13"
|
[Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls13"
|
||||||
|
|
||||||
# Get an overview of the build definition
|
# Get an overview of the build definition
|
||||||
$definitionUrl = "$CollectionUri/$repositoryName/_apis/build/Definitions/$($definitionId)?api-version=5.0"
|
$definitionUrl = "$CollectionUri/$ProjectName/_apis/build/Definitions/$($DefinitionId)?api-version=5.0"
|
||||||
$definitionResponse = Invoke-RestMethod -Method Get -Uri $definitionUrl -Headers $headers -UseBasicParsing
|
$definitionResponse = Invoke-RestMethod -Method Get -Uri $definitionUrl -Headers $headers -UseBasicParsing
|
||||||
|
|
||||||
# If the build has the variable, update it.
|
# If the build has the variable, update it.
|
||||||
if ($definitionResponse.variables.$VariableName) {
|
if ($definitionResponse.variables.$VariableName) {
|
||||||
$oldValue = $definitionResponse.variables.$variableName.value
|
$oldValue = $definitionResponse.variables.$VariableName.value
|
||||||
$definitionResponse.variables.$variableName.value = $VariableValue
|
$definitionResponse.variables.$VariableName.value = $VariableValue
|
||||||
|
|
||||||
Write-Output -InputObject "Updating $VariableName from $($oldValue) to $($VariableValue)..."
|
Write-Output -InputObject "Updating $VariableName from $($oldValue) to $($VariableValue)..."
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue