Update release-pipeline.yml for Azure Pipelines
This commit is contained in:
Родитель
0a7ac6ed22
Коммит
3ac883a5d8
|
@ -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: |
|
||||
|
|
Загрузка…
Ссылка в новой задаче