diff --git a/.ado/templates/setup-certificate.yml b/.ado/templates/setup-certificate.yml index ef36e1a155..3e176c25f4 100644 --- a/.ado/templates/setup-certificate.yml +++ b/.ado/templates/setup-certificate.yml @@ -9,16 +9,16 @@ parameters: type: string steps: - - script: echo '##vso[task.setvariable variable=EncodedKey]$(sampleAppCPPEncodedKey)' - displayName: "Specify Certificate" + - powershell: Write-Host "##vso[task.setvariable variable=EncodedKey]$(sampleAppCPPEncodedKey)" + displayName: Specify Certificate condition: and(eq('${{ parameters.buildEnvironment }}', 'Continuous'), eq('${{ parameters.encodedKey}}' , 'sampleAppCPPEncodedKey')) - - script: echo '##vso[task.setvariable variable=EncodedKey]$(reactUWPTestAppEncodedKey)' - displayName: "Specify Certificate" + - powershell: Write-Host "##vso[task.setvariable variable=EncodedKey]$(reactUWPTestAppEncodedKey)" + displayName: Specify Certificate condition: and(eq('${{ parameters.buildEnvironment }}', 'Continuous'), eq('${{ parameters.encodedKey}}' , 'reactUWPTestAppEncodedKey')) - - script: echo '##vso[task.setvariable variable=EncodedKey]$(playgroundEncodedKey)' - displayName: "Specify Certificate" + - powershell: Write-Host "##vso[task.setvariable variable=EncodedKey]$(playgroundEncodedKey)" + displayName: Specify Certificate condition: and(eq('${{ parameters.buildEnvironment }}', 'Continuous'), eq('${{ parameters.encodedKey}}' , 'playgroundEncodedKey')) - task: PowerShell@2