mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +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"
|
||||
|
||||
# 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
|
||||
|
||||
# If the build has the variable, update it.
|
||||
if ($definitionResponse.variables.$VariableName) {
|
||||
$oldValue = $definitionResponse.variables.$variableName.value
|
||||
$definitionResponse.variables.$variableName.value = $VariableValue
|
||||
$oldValue = $definitionResponse.variables.$VariableName.value
|
||||
$definitionResponse.variables.$VariableName.value = $VariableValue
|
||||
|
||||
Write-Output -InputObject "Updating $VariableName from $($oldValue) to $($VariableValue)..."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue