Skip to content

Commit 8ef38f4

Browse files
author
Qingqing Sun
committed
use webclass to download
1 parent 68b5a6a commit 8ef38f4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

appveyor.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ build_script:
66
- ps: |
77
Write-Host "Begin download artifacts"
88
9-
$file_name = $env:APPVEYOR_REPO_TAG_NAME + ".zip"
10-
$source = "https://github.com/summersun/poc/archive/" + $file_name
11-
# https://github.com/Azure/azure-powershell/archive/v2.2.0-September2016.zip
12-
$dest = "C:\application\data"
13-
Invoke-WebRequest -Uri $source -OutFile $env:APPVEYOR_BUILD_FOLDER
9+
$file_name = $env:APPVEYOR_REPO_TAG_NAME + ".zip"
10+
Write-Host $file_name
11+
$source = "http://github.com/summersun/poc/archive/" + $file_name
12+
Write-Host $source
13+
$dest = $env:APPVEYOR_BUILD_FOLDER +"\" + $file_name
14+
15+
Write-Host $dest
1416
17+
# https://github.com/Azure/azure-powershell/archive/v2.2.0-September2016.zip
18+
19+
(New-Object Net.WebClient).DownloadFile($source, $dest)
20+
1521
7z x $file_name -o$env:APPVEYOR_BUILD_FOLDER -y
1622
1723
# problem 1: find the target folders and files

0 commit comments

Comments
 (0)