зеркало из https://github.com/microsoft/nni.git
Add token for cache download pipeline (#5615)
Co-authored-by: liuzhe <zhliu1@microsoft.com>
This commit is contained in:
Родитель
74b2b4613e
Коммит
d5eeae4f2a
|
@ -9,6 +9,16 @@ parameters:
|
|||
- noop
|
||||
- venv
|
||||
|
||||
# variables set on VSO:
|
||||
# sas_cache
|
||||
#
|
||||
# its value should be:
|
||||
# sp=racw&st=2022-04-01T00:00:00Z&se=......
|
||||
#
|
||||
# how to re-generate:
|
||||
# 1. find the storage on azure portal: nni (resource group) -> nni (storage account) -> cache (container)
|
||||
# 2. settings - shared access tokens - generate sas token and url
|
||||
|
||||
steps:
|
||||
- template: config-version.yml
|
||||
parameters:
|
||||
|
@ -33,7 +43,7 @@ steps:
|
|||
|
||||
- script: |
|
||||
set -e
|
||||
azcopy copy 'https://nni.blob.core.windows.net/cache/dependencies-${{ parameters.platform }}.zip' dependencies.zip
|
||||
azcopy copy 'https://nni.blob.core.windows.net/cache/dependencies-${{ parameters.platform }}.zip?$(sas_cache)' dependencies.zip
|
||||
python test/vso_tools/unpack_dependencies.py dependencies.zip
|
||||
rm dependencies.zip
|
||||
displayName: (POSIX) Download cache
|
||||
|
@ -41,7 +51,7 @@ steps:
|
|||
continueOnError: true
|
||||
|
||||
- powershell: |
|
||||
azcopy copy 'https://nni.blob.core.windows.net/cache/dependencies-${{ parameters.platform }}.zip' dependencies.zip
|
||||
azcopy copy 'https://nni.blob.core.windows.net/cache/dependencies-${{ parameters.platform }}.zip?$(sas_cache)' dependencies.zip
|
||||
python test/vso_tools/unpack_dependencies.py dependencies.zip
|
||||
Remove-Item dependencies.zip
|
||||
displayName: (Windows) Download cache
|
||||
|
|
Загрузка…
Ссылка в новой задаче