Add a temporary bypass of artifacts permission issue (#921)

* Try using blob

* Try using blob

* Update working directory

* Update windows-build-tools-setup-steps.yml
This commit is contained in:
Raymond Yang 2019-04-26 13:34:41 -07:00 committed by GitHub
parent 5ed3db914e
commit 38f1f69432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,18 +16,27 @@ steps:
feedsToUse: config
nugetConfigPath: '$(Build.SourcesDirectory)\csharp\Nuget.CSharp.config'
restoreDirectory: '$(Build.SourcesDirectory)\csharp'
- task: UniversalPackages@0
#- task: UniversalPackages@0
# displayName: 'Download python'
# inputs:
# command: download
# vstsFeed: '$(System.TeamProject)'
# vstsFeedPackage: 'miniconda3_win64'
# vstsPackageVersion: '4.5.11'
# downloadDirectory: '$(Build.BinariesDirectory)\python'
# Temporary bypass of artifacts permission issue
- task: PowerShell@2
displayName: 'Download python'
inputs:
command: download
vstsFeed: '$(System.TeamProject)'
vstsFeedPackage: 'miniconda3_win64'
vstsPackageVersion: '4.5.11'
downloadDirectory: '$(Build.BinariesDirectory)\python'
targetType: 'inline'
script: 'Invoke-WebRequest -OutFile installer.exe https://onnxruntimeinstaller.blob.core.windows.net/conda-installer/installer.exe'
workingDirectory: '$(Build.BinariesDirectory)'
- task: CmdLine@1
displayName: 'Run python installer'
inputs:
filename: '$(Build.BinariesDirectory)\python\installer.exe'
filename: '$(Build.BinariesDirectory)\installer.exe'
arguments: '/S /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$(Build.BinariesDirectory)\packages\python'
timeoutInMinutes: 10
- task: BatchScript@1
@ -55,4 +64,4 @@ steps:
filename: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
arguments: '${{parameters.buildArch}} -vcvars_ver=14.11'
modifyEnvironment: true
condition: ${{parameters.setVcvars}}
condition: ${{parameters.setVcvars}}