Remove condition for develop and main branch on versioning and always add $(PipelineType) to the tag (#4458)
This commit is contained in:
Родитель
80945c51b8
Коммит
2028ec551e
|
@ -169,11 +169,7 @@ stages:
|
|||
script: |
|
||||
$packageVersion = '$(version)'
|
||||
$pipelineType = '$(PipelineType)'
|
||||
$sourceBranchName = '$(Build.SourceBranchName)'
|
||||
if ($sourceBranchName -eq 'main' -or $sourceBranchName -eq 'develop')
|
||||
{
|
||||
$packageVersion = $packageVersion + '.' + $sourceBranchName + '.' + $pipelineType
|
||||
}
|
||||
$packageVersion = $packageVersion + '.' + $pipelineType
|
||||
Write-Host "##vso[task.setvariable variable=packageVersion;]$packageVersion"
|
||||
Write-Host "##vso[task.setvariable variable=packageVersion;isOutput=true;]$packageVersion"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче