[Tizen] Add method to write coredump of .NET process (#317)
[platform/upstream/coreclr.git] / UpdatePublishedVersions.ps1
1 #
2 # Copyright (c) .NET Foundation and contributors. All rights reserved.
3 # Licensed under the MIT license. See LICENSE file in the project root for full license information.
4 #
5
6 # This script updates the dotnet/versions repository based on a set of packages. It directly
7 # commits the changes using GitHub APIs.
8
9 param(
10     [Parameter(Mandatory=$true)][string]$gitHubUser,
11     [Parameter(Mandatory=$true)][string]$gitHubEmail,
12     [Parameter(Mandatory=$true)][string]$gitHubAuthToken,
13     [Parameter(Mandatory=$true)][string]$versionsRepoOwner,
14     [Parameter(Mandatory=$true)][string]$versionsRepo,
15     [Parameter(Mandatory=$true)][string]$versionsRepoPath,
16     # A pattern matching all packages in the set that the versions repository should be set to.
17     [Parameter(Mandatory=$true)][string]$nupkgPath)
18
19 & "$PSScriptRoot\init-tools.cmd"
20 & "$PSScriptRoot\dotnet.cmd" msbuild /nologo /verbosity:minimal /clp:Summary /nodeReuse:false `
21     /l:BinClashLogger,Tools/Microsoft.DotNet.Build.Tasks.dll`;LogFile=binclash.log `
22     /p:RestoreDefaultOptimizationDataPackage=false `
23     /p:PortableBuild=true `
24     /p:UsePartialNGENOptimization=false `
25     /maxcpucount `
26     tests\build.proj /t:UpdatePublishedVersions `
27     /p:GitHubUser="$gitHubUser" `
28     /p:GitHubEmail="$gitHubEmail" `
29     /p:GitHubAuthToken="$gitHubAuthToken" `
30     /p:VersionsRepoOwner="$versionsRepoOwner" `
31     /p:VersionsRepo="$versionsRepo" `
32     /p:VersionsRepoPath="$versionsRepoPath" `
33     /p:ShippedNuGetPackageGlobPath="$nupkgPath"