summaryrefslogtreecommitdiff
path: root/eng/common/PublishToSymbolServers.proj
diff options
context:
space:
mode:
authordotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>2019-04-05 14:04:57 -0700
committerJan Kotas <jkotas@microsoft.com>2019-04-05 14:04:57 -0700
commit552d72db3b73ef48ae930d5a87d24f7dac1d2ac7 (patch)
tree1e6d180b98e7868258245d8a27738ae9a81b674a /eng/common/PublishToSymbolServers.proj
parent5888a2b78324aa9bf5cf85f766b51092077a8626 (diff)
downloadcoreclr-552d72db3b73ef48ae930d5a87d24f7dac1d2ac7.tar.gz
coreclr-552d72db3b73ef48ae930d5a87d24f7dac1d2ac7.tar.bz2
coreclr-552d72db3b73ef48ae930d5a87d24f7dac1d2ac7.zip
[master] Update dependencies from dotnet/arcade (#23718)
* Update dependencies from https://github.com/dotnet/arcade build 20190404.16 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19204.16 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19204.16
Diffstat (limited to 'eng/common/PublishToSymbolServers.proj')
-rw-r--r--eng/common/PublishToSymbolServers.proj74
1 files changed, 74 insertions, 0 deletions
diff --git a/eng/common/PublishToSymbolServers.proj b/eng/common/PublishToSymbolServers.proj
new file mode 100644
index 0000000000..36c08f0ea4
--- /dev/null
+++ b/eng/common/PublishToSymbolServers.proj
@@ -0,0 +1,74 @@
+<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
+<Project Sdk="Microsoft.NET.Sdk">
+ <!--
+ This MSBuild file is intended to be used as the body of the default
+ publishing release pipeline. The release pipeline will use this file
+ to invoke the PublishSymbols tasks to publish symbols to MSDL and SymWeb.
+
+ Parameters:
+
+ - PDBArtifactsDirectory : Full path to directory containing PDB files to be published.
+ - BlobBasePath : Full path containing *.symbols.nupkg packages to be published.
+ - DotNetSymbolServerTokenMsdl : PAT to access MSDL.
+ - DotNetSymbolServerTokenSymWeb : PAT to access SymWeb.
+ - DotNetSymbolExpirationInDays : Expiration days for published packages. Default is 3650.
+ -->
+
+ <PropertyGroup>
+ <TargetFramework>netcoreapp2.1</TargetFramework>
+ </PropertyGroup>
+
+ <Import Project="$(NuGetPackageRoot)microsoft.symboluploader.build.task\$(SymbolUploaderVersion)\build\PublishSymbols.targets" />
+
+ <Target Name="PublishSymbols">
+ <ItemGroup>
+ <FilesToPublishToSymbolServer Include="$(PDBArtifactsDirectory)\*.pdb"/>
+ <PackagesToPublishToSymbolServer Include="$(BlobBasePath)\*.symbols.nupkg"/>
+ </ItemGroup>
+
+ <PropertyGroup>
+ <DotNetSymbolExpirationInDays Condition="'$(DotNetSymbolExpirationInDays)' == ''">3650</DotNetSymbolExpirationInDays>
+ <PublishToSymbolServer>true</PublishToSymbolServer>
+ <PublishToSymbolServer Condition="'@(FilesToPublishToSymbolServer)' == '' and '@(PackagesToPublishToSymbolServer)' == ''">false</PublishToSymbolServer>
+ </PropertyGroup>
+
+ <Message
+ Importance="High"
+ Text="No symbol package(s) were found to publish."
+ Condition="$(PublishToSymbolServer) == false" />
+
+ <!-- Symbol Uploader: MSDL -->
+ <Message Importance="High" Text="Publishing symbol packages to MSDL ..." Condition="$(PublishToSymbolServer)" />
+ <PublishSymbols PackagesToPublish="@(PackagesToPublishToSymbolServer)"
+ FilesToPublish="@(FilesToPublishToSymbolServer)"
+ PersonalAccessToken="$(DotNetSymbolServerTokenMsdl)"
+ SymbolServerPath="https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection"
+ ExpirationInDays="$(DotNetSymbolExpirationInDays)"
+ VerboseLogging="true"
+ DryRun="false"
+ ConvertPortablePdbsToWindowsPdbs="false"
+ PdbConversionTreatAsWarning=""
+ Condition="$(PublishToSymbolServer)"/>
+
+ <!--
+ Symbol Uploader: SymWeb
+ Watson, VS insertion testings and the typical internal dev usage require SymWeb.
+ Currently we need to call the task twice (https://github.com/dotnet/core-eng/issues/3489).
+ -->
+ <Message Importance="High" Text="Publishing symbol packages to SymWeb ..." Condition="$(PublishToSymbolServer)" />
+ <PublishSymbols PackagesToPublish="@(PackagesToPublishToSymbolServer)"
+ FilesToPublish="@(FilesToPublishToSymbolServer)"
+ PersonalAccessToken="$(DotNetSymbolServerTokenSymWeb)"
+ SymbolServerPath="https://microsoft.artifacts.visualstudio.com/DefaultCollection"
+ ExpirationInDays="$(DotNetSymbolExpirationInDays)"
+ VerboseLogging="true"
+ DryRun="false"
+ ConvertPortablePdbsToWindowsPdbs="false"
+ PdbConversionTreatAsWarning=""
+ Condition="$(PublishToSymbolServer)"/>
+ </Target>
+
+ <ItemGroup>
+ <PackageReference Include="Microsoft.SymbolUploader.Build.Task" Version="$(SymbolUploaderVersion)" />
+ </ItemGroup>
+</Project>