Skip to content

Commit

Permalink
Publish symbols using Microsoft.SymbolUploader.Build.Task package
Browse files Browse the repository at this point in the history
Added PB_SymbolExpirationInDays (settable at queue time), PB_MsdlSymbolServerPAT, PB_SymwebSymbolServerPAT variables.

Added "msdl" (publish symbols to public Microsoft server) and "symweb" (publish symbols to symweb) variables to PB_PublishType.

There was a little cleanup of the build def variable names between publish and symbol publish and between corefx and coreclr.

Issue #27343
  • Loading branch information
mikem8361 committed Mar 13, 2018
1 parent a3794b5 commit ec612bc
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 249 deletions.
27 changes: 1 addition & 26 deletions buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,31 +184,6 @@
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Index symbol sources",
"timeoutInMinutes": 0,
"refName": "Task11",
"task": {
"id": "0675668a-7bba-4ccb-901d-5ad6554ca653",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"SymbolsPath": "",
"SearchPattern": "corefx\\bin\\*$(PB_Platform).$(PB_ConfigurationGroup)\\**\\*.pdb",
"SymbolsFolder": "",
"SkipIndexing": "false",
"TreatNotIndexedAsWarning": "false",
"SymbolsMaximumWaitTime": "",
"SymbolsProduct": "",
"SymbolsVersion": "",
"SymbolsArtifactName": "Symbols_$(PB_ConfigurationGroup)"
}
},
{
"environment": {},
"enabled": true,
Expand Down Expand Up @@ -516,4 +491,4 @@
"revision": 418098432,
"visibility": "organization"
}
}
}
25 changes: 0 additions & 25 deletions buildpipeline/DotNet-CoreFx-Trusted-Windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,31 +235,6 @@
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Index symbol sources",
"timeoutInMinutes": 0,
"refName": "Task13",
"task": {
"id": "0675668a-7bba-4ccb-901d-5ad6554ca653",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"SymbolsPath": "",
"SearchPattern": "corefx\\bin\\*$(PB_Platform).$(PB_ConfigurationGroup)\\**\\*.pdb",
"SymbolsFolder": "",
"SkipIndexing": "false",
"TreatNotIndexedAsWarning": "false",
"SymbolsMaximumWaitTime": "",
"SymbolsProduct": "",
"SymbolsVersion": "",
"SymbolsArtifactName": "Symbols_$(PB_ConfigurationGroup)"
}
},
{
"environment": {},
"enabled": true,
Expand Down
151 changes: 97 additions & 54 deletions buildpipeline/DotNet-Trusted-Publish-Symbols.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
{
"build": [
{
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Run script $(VS140COMNTOOLS)\\VsDevCmd.bat",
"timeoutInMinutes": 0,
"task": {
"id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "$(VS140COMNTOOLS)\\VsDevCmd.bat",
"arguments": "",
"modifyEnvironment": "true",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"enabled": true,
"continueOnError": false,
Expand All @@ -24,7 +43,7 @@
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "sync -ab",
"displayName": "Sync packages",
"timeoutInMinutes": 0,
"task": {
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
Expand All @@ -36,52 +55,70 @@
"scriptName": "",
"arguments": "$(PB_CloudDropAccountName) $(CloudDropAccessToken) $(PB_Label)",
"workingFolder": "$(Pipeline.SourcesDirectory)",
"inlineScript": "param($account, $token, $container)\n.\\sync.cmd -ab -- /p:CloudDropAccountName=$account /p:CloudDropAccessToken=$token /p:ContainerName=$container",
"inlineScript": "param($account, $token, $container)\n.\\sync.cmd -ab -- /v:D /p:CloudDropAccountName=$account /p:CloudDropAccessToken=$token /p:ContainerName=$container",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Extract symbol packages; if release branch, archive",
"displayName": "symbol packages -> Blob Feed",
"timeoutInMinutes": 0,
"condition": "and(succeeded(), contains(variables.PB_PublishType, 'blob'), eq(variables.PB_ConfigurationGroup, 'Release'))",
"task": {
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"scriptType": "inlineScript",
"scriptName": "",
"arguments": "-ConfigGroup $(PB_ConfigurationGroup) -SymPkgGlob $(PB_AzureContainerSymbolPackageGlob) -Branch $(SourceBranch)",
"filename": "msbuild",
"arguments": "src\\publish.proj /t:PublishSymbolsToAzureBlobFeed /p:PublishSymbols=\"true\" $(FeedPublishArguments)",
"workingFolder": "$(Pipeline.SourcesDirectory)",
"inlineScript": "param($ConfigGroup, $SymPkgGlob, $Branch)\nif ($ConfigGroup -ne \"Release\") { exit }\n$archive = $Branch.StartsWith(\"release/\")\n\n$target = \"GetAllSymbolFilesToPublish\"\nif ($archive) { $target = \"SubmitSymbolsRequest\" }\n\n.\\build-managed.cmd -- `\n/t:$target `\n/p:SkipCreateWindowsPdbsFromPortablePdbs=true `\n/p:SymbolPackagesToPublishGlob=$SymPkgGlob `\n/p:ArchiveSymbols=$archive `\n/v:D",
"failOnStandardError": "true"
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Publish Symbols to Artifact Services",
"displayName": "Publish symbols to msdl",
"timeoutInMinutes": 0,
"condition": "and(succeeded(), contains(variables.PB_PublishType, 'msdl'), eq(variables.PB_ConfigurationGroup, 'Release'))",
"task": {
"id": "29827cd1-5c33-4ff0-a817-abd46970ffc4",
"versionSpec": "0.*",
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"symbolServiceURI": "https://microsoft.artifacts.visualstudio.com/DefaultCollection",
"requestName": "$(system.teamProject)/$(Build.BuildNumber)/$(Build.BuildId)",
"sourcePath": "$(Pipeline.SourcesDirectory)\\bin\\obj\\SymbolsRequest\\ExtractedPackages",
"assemblyPath": "",
"toLowerCase": "true",
"detailedLog": "true",
"expirationInDays": "30",
"usePat": "false"
"filename": "msbuild",
"arguments": "src\\publish.proj /v:D /t:PublishAllSymbols /p:SymbolServerPath=$(PB_MsdlSymbolServerPath) /p:SymbolServerPAT=$(PB_MsdlSymbolServerPAT) /p:SymbolExpirationInDays=$(PB_SymbolExpirationInDays) $(FeedPublishArguments)",
"workingFolder": "$(Pipeline.SourcesDirectory)",
"failOnStandardError": "false"
}
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Publish symbols to symweb",
"timeoutInMinutes": 0,
"condition": "and(succeeded(), contains(variables.PB_PublishType, 'symweb'), eq(variables.PB_ConfigurationGroup, 'Release'))",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "msbuild",
"arguments": "src\\publish.proj /v:D /t:PublishAllSymbols /p:SymbolServerPath=$(PB_SymwebSymbolServerPath) /p:SymbolServerPAT=$(PB_SymwebSymbolServerPAT) /p:SymbolExpirationInDays=$(PB_SymbolExpirationInDays) $(FeedPublishArguments)",
"workingFolder": "$(Pipeline.SourcesDirectory)",
"failOnStandardError": "false"
}
},
],
"options": [
{
Expand Down Expand Up @@ -132,7 +169,7 @@
"allowOverride": true
},
"PB_ConfigurationGroup": {
"value": "Debug",
"value": "Release",
"allowOverride": true
},
"PB_CloudDropAccountName": {
Expand All @@ -141,28 +178,21 @@
},
"CloudDropAccessToken": {
"value": null,
"allowOverride": true,
"isSecret": true
},
"OfficialBuildId": {
"value": "$(Build.BuildNumber)",
"allowOverride": true
},
"PB_Label": {
"value": "$(Build.BuildNumber)",
"allowOverride": true
},
"PB_BuildConfiguration": {
"value": "release"
},
"PB_BuildPlatform": {
"value": "any cpu"
"PB_BlobNamePrefix": {
"value": "$(PB_PipeBuildIdentifier)/",
"allowOverride": true
},
"Pipeline.SourcesDirectory": {
"value": "$(Build.BinariesDirectory)\\pipelineRepository"
},
"PB_VstsAccountName": {
"value": "dagood"
"value": "dn-bot"
},
"PB_VstsRepositoryName": {
"value": "DotNet-CoreFX-Trusted",
Expand All @@ -175,6 +205,14 @@
"value": null,
"isSecret": true
},
"AzureContainerSymbolPackageDirectory": {
"value": "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_ConfigurationGroup)\\symbols",
"allowOverride": true
},
"OfficialBuildId": {
"value": "$(Build.BuildNumber)",
"allowOverride": true
},
"SourceVersion": {
"value": "master",
"allowOverride": true
Expand All @@ -183,35 +221,40 @@
"value": "master",
"allowOverride": true
},
"PB_AzureContainerSymbolPackageGlob": {
"value": "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_ConfigurationGroup)\\symbols\\*.nupkg",
"allowOverride": true
"FeedPublishArguments": {
"value": "$(PB_BuildOutputManifestArguments) /p:AccountKey=$(PB_PublishBlobFeedKey) /p:ExpectedFeedUrl=$(PB_PublishBlobFeedUrl) /p:ConfigurationGroup=$(PB_ConfigurationGroup)"
},
"PB_DotNetCoreShareDir": {
"value": "passed-by-pipebuild",
"PB_PublishBlobFeedUrl": {
"value": "",
"allowOverride": true
},
"SymbolsProject": {
"value": "CLR"
"PB_PublishBlobFeedKey": {
"value": null,
"isSecret": true
},
"SymbolsStatusMail": {
"value": "dagood;mawilkie"
"PB_PublishType": {
"value": ""
},
"SymbolsUserName": {
"value": "dlab"
"PB_BuildOutputManifestArguments": {
"value": "/p:ManifestBuildId=$(OfficialBuildId) /p:ManifestBranch=$(SourceBranch) /p:ManifestCommit=$(SourceVersion)"
},
"SymbolsRelease": {
"value": "rtm"
"PB_MsdlSymbolServerPath": {
"value": "https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection"
},
"SymbolsProductGroup": {
"value": "Visual_Studio"
"PB_MsdlSymbolServerPAT": {
"value": null,
"isSecret": true
},
"SymbolsProductName": {
"value": "dotnetcore"
"PB_SymwebSymbolServerPath": {
"value": "https://microsoft.artifacts.visualstudio.com/DefaultCollection"
},
"PB_SymwebSymbolServerPAT": {
"value": null,
"isSecret": true
},
"PB_SymbolExpirationInDays": {
"value": "30"
},
"SymbolPublishDestinationDir": {
"value": "$(PB_DotNetCoreShareDir)\\$(PB_VstsRepositoryName)\\$(PB_Label)\\"
}
},
"retentionRules": [
{
Expand Down Expand Up @@ -273,4 +316,4 @@
"state": "wellFormed",
"revision": 418097642
}
}
}
Loading

0 comments on commit ec612bc

Please sign in to comment.