设置内置八达通变量

时间:2018-01-02 11:07:36

标签: powershell azure deployment azure-cloud-services octopus-deploy

我正在尝试在cloud-service部署章鱼步骤的deploy.ps1中更新“Octopus.Action.Azure.CloudServicePackageExtractionDisabled”八达通变量的值。但以下似乎不起作用。有什么建议吗?

$cloudServicePackageExtractionDisabledpre = $OctopusParameters["Octopus.Action.Azure.CloudServicePackageExtractionDisabled"]    
Write-Host "PRE CloudServicePackageExtractionDisabled: $cloudServicePackageExtractionDisabledpre"

Set-OctopusVariable -name "Octopus.Action.Azure.CloudServicePackageExtractionDisabled" -value "True"

$cloudServicePackageExtractionDisabledpost = $OctopusParameters["Octopus.Action.Azure.CloudServicePackageExtractionDisabled"]    
Write-Host "POST CloudServicePackageExtractionDisabled: $cloudServicePackageExtractionDisabledpost"

0 个答案:

没有答案