summaryrefslogtreecommitdiff
path: root/publish-packages.cmd
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2016-04-27 21:35:45 (GMT)
committerwtgodbe <wigodbe@microsoft.com>2016-05-17 21:06:39 (GMT)
commit8568bf1d9722657c602a1f1fe0148e28a93ea8ce (patch)
treed784a4438e3fe7b74106f1d3e82aa88889024fc4 /publish-packages.cmd
parent41a4ad5054cf877db6aa331855b43ad8678a93ad (diff)
downloadcoreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.zip
coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.tar.gz
coreclr-8568bf1d9722657c602a1f1fe0148e28a93ea8ce.tar.bz2
Add dev workflow scripts for build pipeline
Diffstat (limited to 'publish-packages.cmd')
-rw-r--r--publish-packages.cmd35
1 files changed, 35 insertions, 0 deletions
diff --git a/publish-packages.cmd b/publish-packages.cmd
new file mode 100644
index 0000000..4179454
--- /dev/null
+++ b/publish-packages.cmd
@@ -0,0 +1,35 @@
+@if "%_echo%" neq "on" echo off
+setlocal EnableDelayedExpansion
+
+set packagesLog=publish-packages.log
+echo Running publish-packages.cmd %* > %packagesLog%
+
+set options=/nologo /v:minimal /flp:v=detailed;Append;LogFile=%packagesLog%
+set allargs=%*
+
+if /I [%1] == [/?] goto Usage
+if /I [%1] == [/help] goto Usage
+
+REM ensure that msbuild is available
+echo Running init-tools.cmd
+call %~dp0init-tools.cmd
+
+echo msbuild.exe %~dp0src\publish.proj !options! !allargs! >> %packagesLog%
+call msbuild.exe %~dp0src\publish.proj !options! !allargs!
+if NOT [%ERRORLEVEL%]==[0] (
+ echo ERROR: An error occurred while publishing packages, see %packagesLog% for more details.
+ exit /b 1
+)
+
+echo Done publishing packages.
+exit /b
+
+:Usage
+echo.
+echo Publishes the NuGet packages to the specified location.
+echo For publishing to Azure the following properties are required.
+echo /p:CloudDropAccountName="account name"
+echo /p:CloudDropAccessToken="access token"
+echo /p:__BuildType="Configuration Group"
+echo /p:__BuildArch="Architecture"
+exit /b \ No newline at end of file