summaryrefslogtreecommitdiff
path: root/sync.cmd
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2016-05-23 21:31:19 (GMT)
committerwtgodbe <wigodbe@microsoft.com>2016-05-23 21:31:19 (GMT)
commitd75cfc2d6d51d17d8ae026968772627617bf7d9f (patch)
treeaa8adfa58ddcd265a9867549b6c526d587787fd7 /sync.cmd
parent37d2c7bed790af03173bb66aeff37796cb25eb66 (diff)
downloadcoreclr-d75cfc2d6d51d17d8ae026968772627617bf7d9f.zip
coreclr-d75cfc2d6d51d17d8ae026968772627617bf7d9f.tar.gz
coreclr-d75cfc2d6d51d17d8ae026968772627617bf7d9f.tar.bz2
Update sync.cmd to download Azure Blobs. Also change publish.proj to publish packages into symbol/pkg directories
Diffstat (limited to 'sync.cmd')
-rw-r--r--sync.cmd40
1 files changed, 35 insertions, 5 deletions
diff --git a/sync.cmd b/sync.cmd
index 70bde8c..b4886b2 100644
--- a/sync.cmd
+++ b/sync.cmd
@@ -5,12 +5,14 @@ set synclog=sync.log
echo Running Sync.cmd %* > %synclog%
set options=/nologo /v:minimal /clp:Summary /flp:v=detailed;Append;LogFile=%synclog%
+
+set "__args= %*"
+set processedArgs=
set unprocessedBuildArgs=
-set allargs=%*
-set thisArgs=
set src=false
set packages=false
+set azureBlobs=false
if [%1]==[] (
set src=true
@@ -26,17 +28,27 @@ if /I [%1] == [/help] goto Usage
if /I [%1] == [/p] (
set packages=true
- set thisArgs=!thisArgs!%1
+ set processedArgs=!processedArgs! %1
goto Next
)
if /I [%1] == [/s] (
set src=true
- set thisArgs=!thisArgs!%1
+ set processedArgs=!processedArgs! %1
+ goto Next
+)
+
+if /I [%1] == [/ab] (
+ set azureBlobs=true
+ set processedArgs=!processedArgs! %1
goto Next
)
-set unprocessedBuildArgs=!unprocessedBuildArgs! %1
+if [!processedArgs!]==[] (
+ call set unprocessedBuildArgs=!__args!
+) else (
+ call set unprocessedBuildArgs=%%__args:*!processedArgs!=%%
+)
:Next
shift /1
@@ -55,6 +67,16 @@ if [%src%] == [true] (
)
)
+if [%azureBlobs%] == [true] (
+ echo Connecting and downloading packages from Azure BLOB ...
+ echo msbuild.exe %~dp0src\syncAzure.proj !options! !unprocessedBuildArgs! >> %synclog%
+ call msbuild.exe %~dp0src\syncAzure.proj !options! !unprocessedBuildArgs!
+ if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while downloading packages from Azure BLOB, see %synclog% for more details. There may have been networking problems so please try again in a few minutes.
+ exit /b 1
+ )
+)
+
set targets=RestoreNETCorePlatforms
if [%packages%] == [true] (
@@ -80,5 +102,13 @@ echo Options:
echo /s - Fetches source history from all configured remotes
echo (git fetch --all -p -v)
echo /p - Restores all nuget packages for repository
+echo /ab - Downloads the latests product packages from Azure.
+echo The following properties are required:
+echo /p:CloudDropAccountName="Account name"
+echo /p:CloudDropAccessToken="Access token"
+echo To download a specific group of product packages, specify:
+echo /p:BuildNumberMajor
+echo /p:BuildNumberMinor
+echo.
echo.
echo If no option is specified then sync.cmd /s /p is implied. \ No newline at end of file