Skip to content

Commit e74ba3f

Browse files
author
Hovsep
committed
Merge pull request Azure#1687 from yugangw-msft/load7z
load 7zip from team storage account
2 parents e2db619 + bc7e106 commit e74ba3f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ src/Publish/
33
src/Package/
44
drop/
55

6+
# external tools
7+
tools/CLU/7zip/
8+
69
obj
710
TestResults
811
*.orig

tools/CLU/UploadOrDownloadInstaller.bat

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ set key=%3
88
set downloadFolder=%4
99

1010
if "%1" == "upload" (
11-
del /Q /F %root%\drop\*.tar.*
11+
12+
IF EXIST %root%\drop\*.tar.* del /Q /F %root%\drop\*.tar.*
13+
14+
%~dp0\AzCopy\AzCopy.exe /Source:https://azuresdktools.blob.core.windows.net/7-zip /S /Dest:%~dp0\7-zip /Y
15+
if ERRORLEVEL 1 (
16+
echo failed to download 7-zip to local 7-zip folder
17+
exit /B 1
18+
)
19+
1220
%~dp0\7-Zip\7z.exe a -ttar -so %root%\drop\ubuntu.14.04-x64.latest.tar %root%\drop\clurun\ubuntu.14.04-x64 | %~dp0\7-Zip\7z.exe a -si %root%\drop\ubuntu.14.04-x64.latest.tar.gz
1321
if ERRORLEVEL 1 (
1422
echo failed to create tar.gz file ubuntu.14.04-x64.latest.tar.gz
@@ -36,6 +44,7 @@ if "%1" == "upload" (
3644

3745
if "%1" == "download" (
3846
echo download the latest installer
47+
echo %~dp0\AzCopy\AzCopy.exe /Source:%storageUrl% /SourceKey:%key% /Dest:%downloadFolder% /Pattern:*.gz /Y /S
3948
%~dp0\AzCopy\AzCopy.exe /Source:%storageUrl% /SourceKey:%key% /Dest:%downloadFolder% /Pattern:*.gz /Y /S
4049
if ERRORLEVEL 1 (
4150
echo failed to download installers from "%storageUrl%" to "%downloadFolder%"

0 commit comments

Comments
 (0)