From cf729c34077f2f55080d12dd19e1c921c8e1f5af Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 26 Nov 2019 12:42:18 -0800 Subject: [PATCH] Change to use pwsh to have consistent JSON conversion for `DateTime` (#11126) --- .../azureDevOps/templates/SetVersionVariables.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/releaseBuild/azureDevOps/templates/SetVersionVariables.yml b/tools/releaseBuild/azureDevOps/templates/SetVersionVariables.yml index ec688f8a91..5a4f0b8661 100644 --- a/tools/releaseBuild/azureDevOps/templates/SetVersionVariables.yml +++ b/tools/releaseBuild/azureDevOps/templates/SetVersionVariables.yml @@ -4,7 +4,7 @@ parameters: CreateJson: 'no' steps: -- powershell: | +- pwsh: | $createJson = ("${{ parameters.ReleaseTagVarName }}" -ne "no") $releaseTag = tools/releaseBuild/setReleaseTag.ps1 -ReleaseTag ${{ parameters.ReleaseTagVar }} -Variable "${{ parameters.ReleaseTagVarName }}" -CreateJson:$createJson $version = $releaseTag.Substring(1) @@ -18,7 +18,7 @@ steps: Write-Host "##$vstsCommandString" displayName: 'Set ${{ parameters.ReleaseTagVarName }} and other version Variables' -- powershell: | +- pwsh: | Get-ChildItem -Path env: displayName: Capture environment condition: succeededOrFailed()