24 lines
994 B
YAML
24 lines
994 B
YAML
parameters:
|
|
ReleaseTagVar: v6.2.0
|
|
ReleaseTagVarName: ReleaseTagVar
|
|
CreateJson: 'no'
|
|
|
|
steps:
|
|
- powershell: |
|
|
$createJson = ("${{ parameters.ReleaseTagVarName }}" -ne "no")
|
|
$releaseTag = tools/releaseBuild/setReleaseTag.ps1 -ReleaseTag ${{ parameters.ReleaseTagVar }} -Variable "${{ parameters.ReleaseTagVarName }}" -CreateJson:$createJson
|
|
$version = $releaseTag.Substring(1)
|
|
$vstsCommandString = "vso[task.setvariable variable=Version]$version"
|
|
Write-Host ("sending " + $vstsCommandString)
|
|
Write-Host "##$vstsCommandString"
|
|
|
|
$azureVersion = $releaseTag.ToLowerInvariant() -replace '\.', '-'
|
|
$vstsCommandString = "vso[task.setvariable variable=AzureVersion]$azureVersion"
|
|
Write-Host ("sending " + $vstsCommandString)
|
|
Write-Host "##$vstsCommandString"
|
|
displayName: 'Set ${{ parameters.ReleaseTagVarName }} and other version Variables'
|
|
|
|
- powershell: |
|
|
Get-ChildItem -Path env:
|
|
displayName: Capture environment
|
|
condition: succeededOrFailed()
|