fix: change variable param
This commit is contained in:
Родитель
b9f86bac38
Коммит
2d3d7c2357
|
@ -189,7 +189,7 @@ function CreateAzDevOpsRepoEnviorment {
|
|||
|
||||
Write-Host "Creating enviorment on branch $Branch" -ForegroundColor Green
|
||||
Write-Host "Project " $RepoConfiguration.AzureDevOpsProject -ForegroundColor Green
|
||||
Write-Host "Organization " $RepoConfiguration.AzureDevOpsOrganizationURI
|
||||
Write-Host "Organization " $RepoConfiguration.AzureDevOpsOrganization -ForegroundColor Green
|
||||
|
||||
$envBody = @{
|
||||
name = $env
|
||||
|
@ -199,7 +199,7 @@ function CreateAzDevOpsRepoEnviorment {
|
|||
Set-Content -Path $infile -Value ($envBody | ConvertTo-Json)
|
||||
az devops invoke `
|
||||
--area distributedtask --resource environments `
|
||||
--route-parameters project=$RepoConfiguration.AzureDevOpsProject --org $RepoConfiguration.AzureDevOpsOrganizationURI `
|
||||
--route-parameters project=$RepoConfiguration.AzureDevOpsProject --org $RepoConfiguration.AzureDevOpsOrganization `
|
||||
--http-method POST --in-file $infile `
|
||||
--api-version "6.0-preview"
|
||||
rm $infile -f
|
||||
|
|
Загрузка…
Ссылка в новой задаче