【发布时间】:2016-06-17 11:58:27
【问题描述】:
我们已经设置了我的 TFS CI 构建,并且我们正在管理一个变量来维护版本控制, 我们想在每次成功构建后进行更新,知道怎么做吗?
我已经编写了 PowerShell 脚本
param([Int32]$currentPatchVersion)
Write-Host "Current patch version "$currentPatchVersion
$NewVersion=$currentPatchVersion + 1
Write-Host "New patch version "$NewVersion
Write-Host ("##vso[task.setvariable variable=PackageVersion.Patch;]$NewVersion")
但它只是即时应用。
我想将它永久应用于设置。
【问题讨论】:
标签: tfs msbuild continuous-integration azure-pipelines azure-artifacts