|
45 | 45 | }
|
46 | 46 | },
|
47 | 47 | {
|
| 48 | + "environment": {}, |
48 | 49 | "enabled": true,
|
49 | 50 | "continueOnError": false,
|
50 | 51 | "alwaysRun": false,
|
51 |
| - "displayName": "Sync packages", |
| 52 | + "displayName": "Setup vs dev env", |
| 53 | + "timeoutInMinutes": 0, |
| 54 | + "task": { |
| 55 | + "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd", |
| 56 | + "versionSpec": "1.*", |
| 57 | + "definitionType": "task" |
| 58 | + }, |
| 59 | + "inputs": { |
| 60 | + "filename": "$(Pipeline.SourcesDirectory)\\setup_vs_tools.cmd", |
| 61 | + "arguments": "", |
| 62 | + "modifyEnvironment": "true", |
| 63 | + "workingFolder": "", |
| 64 | + "failOnStandardError": "false" |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "enabled": true, |
| 69 | + "continueOnError": false, |
| 70 | + "alwaysRun": false, |
| 71 | + "displayName": "Sync symbol packages", |
52 | 72 | "timeoutInMinutes": 0,
|
53 | 73 | "task": {
|
54 | 74 | "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
|
|
57 | 77 | },
|
58 | 78 | "inputs": {
|
59 | 79 | "filename": "sync.cmd",
|
60 |
| - "arguments": "-ab -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_ContainerName) -BlobNamePrefix=$(PB_BlobNamePrefix)$(PB_BuildType)/symbolpkg/ -- /p:DownloadFlatFiles=true /p:BlobNameExtension=\".nupkg\" /p:DownloadDirectory=$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_BuildType)\\symbolpkg", |
| 80 | + "arguments": "-ab -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_ContainerName) -BlobNamePrefix=$(PB_BlobNamePrefix)$(ConfigurationGroup)/symbolpkg/ -- /p:DownloadFlatFiles=true /p:BlobNameExtension=\".nupkg\" /p:DownloadDirectory=$(AzureContainerSymbolPackageDirectory)symbolpkg", |
61 | 81 | "workingFolder": "$(Pipeline.SourcesDirectory)",
|
62 | 82 | "failOnStandardError": "false"
|
63 | 83 | }
|
64 | 84 | },
|
65 | 85 | {
|
| 86 | + "environment": {}, |
66 | 87 | "enabled": true,
|
67 | 88 | "continueOnError": false,
|
68 | 89 | "alwaysRun": false,
|
69 |
| - "displayName": "Extract symbol packages", |
| 90 | + "displayName": "Symbol Packages -> Blob Feed", |
70 | 91 | "timeoutInMinutes": 0,
|
| 92 | + "condition": "and(succeeded(), contains(variables.PB_PublishType, 'blob'), eq(variables.ConfigurationGroup, 'Release'))", |
71 | 93 | "task": {
|
72 |
| - "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", |
| 94 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
73 | 95 | "versionSpec": "1.*",
|
74 | 96 | "definitionType": "task"
|
75 | 97 | },
|
76 | 98 | "inputs": {
|
77 |
| - "scriptType": "inlineScript", |
78 |
| - "scriptName": "", |
79 |
| - "arguments": "-BuildType $(PB_BuildType) -SymPkgGlob $(PB_AzureContainerSymbolPackageGlob) -Branch $(SourceBranch)", |
| 99 | + "filename": "msbuild", |
| 100 | + "arguments": "src\\publish.proj /v:D /t:PublishSymbolPackages /p:__PublishSymbols=true $(FeedPublishArguments) /fileloggerparameters:Verbosity=diag;LogFile=publishsympkg.log", |
80 | 101 | "workingFolder": "$(Pipeline.SourcesDirectory)",
|
81 |
| - "inlineScript": "param($BuildType, $SymPkgGlob, $Branch)\nif ($BuildType -ne \"Release\") { exit }\n\n.\\run.cmd build -- `\n/t:UnzipSymbolPackagesForPublish `\n/p:SymbolPackagesToPublishGlob=$SymPkgGlob `\n/v:D", |
82 |
| - "failOnStandardError": "true" |
| 102 | + "failOnStandardError": "false" |
83 | 103 | }
|
84 | 104 | },
|
85 | 105 | {
|
| 106 | + "environment": {}, |
86 | 107 | "enabled": true,
|
87 | 108 | "continueOnError": false,
|
88 | 109 | "alwaysRun": false,
|
89 |
| - "displayName": "Publish Symbols to Artifact Services", |
| 110 | + "displayName": "Publish symbols to msdl", |
90 | 111 | "timeoutInMinutes": 0,
|
| 112 | + "condition": "and(succeeded(), contains(variables.PB_PublishType, 'msdl'), eq(variables.ConfigurationGroup, 'Release'))", |
91 | 113 | "task": {
|
92 |
| - "id": "29827cd1-5c33-4ff0-a817-abd46970ffc4", |
93 |
| - "versionSpec": "0.*", |
| 114 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 115 | + "versionSpec": "1.*", |
94 | 116 | "definitionType": "task"
|
95 | 117 | },
|
96 | 118 | "inputs": {
|
97 |
| - "symbolServiceURI": "https://microsoft.artifacts.visualstudio.com/DefaultCollection", |
98 |
| - "requestName": "$(system.teamProject)/$(Build.BuildNumber)/$(Build.BuildId)", |
99 |
| - "sourcePath": "$(Pipeline.SourcesDirectory)\\bin\\obj\\SymbolsRequest\\ExtractedPackages", |
100 |
| - "assemblyPath": "", |
101 |
| - "toLowerCase": "true", |
102 |
| - "detailedLog": "true", |
103 |
| - "expirationInDays": "30", |
104 |
| - "usePat": "false" |
| 119 | + "filename": "msbuild", |
| 120 | + "arguments": "src\\publish.proj /v:D /t:PublishAllSymbols $(FeedPublishArguments) /p:SymbolServerPath=$(PB_MsdlSymbolServerPath) /p:SymbolServerPAT=$(PB_MsdlSymbolServerPAT) /p:SymbolExpirationInDays=$(PB_SymbolExpirationInDays)", |
| 121 | + "workingFolder": "$(Pipeline.SourcesDirectory)", |
| 122 | + "failOnStandardError": "false" |
| 123 | + } |
| 124 | + }, |
| 125 | + { |
| 126 | + "environment": {}, |
| 127 | + "enabled": true, |
| 128 | + "continueOnError": false, |
| 129 | + "alwaysRun": false, |
| 130 | + "displayName": "Publish symbols to symweb", |
| 131 | + "timeoutInMinutes": 0, |
| 132 | + "condition": "and(succeeded(), contains(variables.PB_PublishType, 'symweb'), eq(variables.ConfigurationGroup, 'Release'))", |
| 133 | + "task": { |
| 134 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 135 | + "versionSpec": "1.*", |
| 136 | + "definitionType": "task" |
| 137 | + }, |
| 138 | + "inputs": { |
| 139 | + "filename": "msbuild", |
| 140 | + "arguments": "src\\publish.proj /v:D /t:PublishAllSymbols $(FeedPublishArguments) /p:SymbolServerPath=$(PB_SymwebSymbolServerPath) /p:SymbolServerPAT=$(PB_SymwebSymbolServerPAT) /p:SymbolExpirationInDays=$(PB_SymbolExpirationInDays)", |
| 141 | + "workingFolder": "$(Pipeline.SourcesDirectory)", |
| 142 | + "failOnStandardError": "false" |
105 | 143 | }
|
106 | 144 | },
|
107 | 145 | {
|
|
177 | 215 | "value": "false",
|
178 | 216 | "allowOverride": true
|
179 | 217 | },
|
180 |
| - "PB_BuildType": { |
181 |
| - "value": "Release", |
| 218 | + "ConfigurationGroup": { |
| 219 | + "value": "$(PB_BuildType)", |
182 | 220 | "allowOverride": true
|
183 | 221 | },
|
184 | 222 | "CloudDropAccountName": {
|
|
190 | 228 | "allowOverride": true,
|
191 | 229 | "isSecret": true
|
192 | 230 | },
|
193 |
| - "OfficialBuildId": { |
| 231 | + "PB_ContainerName": { |
194 | 232 | "value": "$(Build.BuildNumber)",
|
195 | 233 | "allowOverride": true
|
196 | 234 | },
|
197 |
| - "Label": { |
198 |
| - "value": "$(Build.BuildNumber)", |
| 235 | + "PB_BlobNamePrefix": { |
| 236 | + "value": "$(PB_PipeBuildIdentifier)/", |
| 237 | + "allowOverride": true |
| 238 | + }, |
| 239 | + "AzureBlobFeedAccountName": { |
| 240 | + "value": "dotnetfeed", |
| 241 | + "allowOverride": true |
| 242 | + }, |
| 243 | + "AzureBlobFeedAccessToken": { |
| 244 | + "value": null, |
| 245 | + "allowOverride": true, |
| 246 | + "isSecret": true |
| 247 | + }, |
| 248 | + "AzureBlobFeedContainerName": { |
| 249 | + "value": "dotnet-core", |
199 | 250 | "allowOverride": true
|
200 | 251 | },
|
201 | 252 | "Pipeline.SourcesDirectory": {
|
|
215 | 266 | "value": null,
|
216 | 267 | "isSecret": true
|
217 | 268 | },
|
| 269 | + "OfficialBuildId": { |
| 270 | + "value": "$(Build.BuildNumber)", |
| 271 | + "allowOverride": true |
| 272 | + }, |
218 | 273 | "SourceVersion": {
|
219 | 274 | "value": "master",
|
220 | 275 | "allowOverride": true
|
|
223 | 278 | "value": "master",
|
224 | 279 | "allowOverride": true
|
225 | 280 | },
|
| 281 | + "AzureContainerSymbolPackageDirectory": { |
| 282 | + "value": "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(ConfigurationGroup)\\", |
| 283 | + "allowOverride": true |
| 284 | + }, |
226 | 285 | "AzureContainerSymbolPackageGlob": {
|
227 | 286 | "value": "symbolpkg\\*.nupkg",
|
| 287 | + }, |
| 288 | + "FeedPublishArguments": { |
| 289 | + "value": "$(PB_BuildOutputManifestArguments) /p:ExpectedFeedUrl=$(PB_PublishBlobFeedUrl) /p:CloudDropAccessToken=$(PB_PublishBlobFeedKey) /p:CloudDropAccountName=$(AzureBlobFeedAccountName) /p:ContainerName=$(AzureBlobFeedContainerName) /p:OverwriteOnPublish=true /p:PackagesPatternDir=$(AzureContainerSymbolPackageDirectory) /p:__BuildType=$(ConfigurationGroup) /p:OfficialPublish=true /p:PublishFlatContainer=false" |
| 290 | + }, |
| 291 | + "PB_PublishType": { |
| 292 | + "value": "", |
228 | 293 | "allowOverride": true
|
229 | 294 | },
|
230 |
| - "PB_AzureContainerSymbolPackageGlob": { |
231 |
| - "value": "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_BuildType)\\$(AzureContainerSymbolPackageGlob)", |
| 295 | + "PB_PublishBlobFeedUrl": { |
| 296 | + "value": "", |
232 | 297 | "allowOverride": true
|
233 | 298 | },
|
234 |
| - "PB_DotNetCoreShareDir": { |
235 |
| - "value": "passed-by-pipebuild", |
| 299 | + "PB_PublishBlobFeedKey": { |
| 300 | + "value": "", |
236 | 301 | "allowOverride": true
|
237 | 302 | },
|
238 |
| - "SymbolsProject": { |
239 |
| - "value": "CLR" |
| 303 | + "PB_BuildOutputManifestArguments": { |
| 304 | + "value": "/p:ManifestBuildId=$(OfficialBuildId) /p:ManifestBranch=$(SourceBranch) /p:ManifestCommit=$(SourceVersion)" |
240 | 305 | },
|
241 |
| - "SymbolsStatusMail": { |
242 |
| - "value": "dagood;mawilkie" |
| 306 | + "PB_MsdlSymbolServerPath": { |
| 307 | + "value": "https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection" |
243 | 308 | },
|
244 |
| - "SymbolsUserName": { |
245 |
| - "value": "dlab" |
| 309 | + "PB_MsdlSymbolServerPAT": { |
| 310 | + "value": null, |
| 311 | + "isSecret": true |
246 | 312 | },
|
247 |
| - "SymbolsRelease": { |
248 |
| - "value": "rtm" |
| 313 | + "PB_SymwebSymbolServerPath": { |
| 314 | + "value": "https://microsoft.artifacts.visualstudio.com/DefaultCollection" |
249 | 315 | },
|
250 |
| - "SymbolsProductGroup": { |
251 |
| - "value": "Visual_Studio" |
| 316 | + "PB_SymwebSymbolServerPAT": { |
| 317 | + "value": null, |
| 318 | + "isSecret": true |
252 | 319 | },
|
253 |
| - "SymbolsProductName": { |
254 |
| - "value": "dotnetcore" |
| 320 | + "PB_SymbolExpirationInDays": { |
| 321 | + "value": "30" |
255 | 322 | },
|
256 |
| - "SymbolPublishDestinationDir": { |
257 |
| - "value": "$(PB_DotNetCoreShareDir)\\$(PB_VstsRepositoryName)\\$(Label)\\" |
258 |
| - } |
259 | 323 | },
|
260 | 324 | "retentionRules": [
|
261 | 325 | {
|
|
0 commit comments