Update release-pipeline.yml for Azure Pipelines

This commit is contained in:
patelp3989 2021-10-21 01:35:01 -07:00
Родитель 0a7ac6ed22
Коммит 3ac883a5d8
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -58,13 +58,17 @@ stages:
BuildConfiguration: 'Release'
FORepoRoot: '$(Build.SourcesDirectory)'
steps:
- script: echo $(APIScanClient)
- script: |
echo $(APIScanClient)
echo $(APIScanTenant)
echo $(APISCANSECRET)
echo $(MY_MAPPED_ENV_VAR)
env:
MY_MAPPED_ENV_VAR: $(APIScanSecret)
MY_MAPPED_ENV_VAR: $(APISCANSECRET)
- powershell: |
Write-Host "Using the env var directly does not work: $APIScanClient"
Write-Host "Using the env var directly does not work: $APIScanSecret"
Write-Host "Using a global non-secret var mapped in the pipeline works: $APIScanTenant"
Write-Host "Using the mapped env var for this task works and is recommended: $MY_MAPPED_ENV_VAR"
Write-Host "Using the mapped env var for this task works and is recommended: $env:MY_MAPPED_ENV_VAR"
- checkout: self
- template: ./templates/template-set-initial-variables.yml
- pwsh: |