1{
2  "build": [
3    {
4      "environment": {},
5      "enabled": true,
6      "continueOnError": false,
7      "alwaysRun": false,
8      "displayName": "Delete 'corefx'",
9      "timeoutInMinutes": 0,
10      "refName": "Task1",
11      "task": {
12        "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
13        "versionSpec": "1.*",
14        "definitionType": "task"
15      },
16      "inputs": {
17        "scriptType": "inlineScript",
18        "scriptName": "",
19        "arguments": "-path $(build.SourcesDirectory)\\corefx",
20        "workingFolder": "",
21        "inlineScript": "param($path)\nif ($path -and (Test-Path $path)){\nStop-Process -processname msbuild -ErrorAction Ignore -Verbose\nStop-Process -processname dotnet -ErrorAction Ignore -Verbose\nStop-Process -processname vbcscompiler -ErrorAction Ignore -Verbose\n$emptyFolder = (New-Item -ItemType Directory (Join-Path -Path $env:TEMP -ChildPath ([System.IO.Path]::GetRandomFileName()))).FullName\nrobocopy $emptyFolder $path /purge\nRemove-Item -Recurse -Force $path,$emptyFolder \nexit 0\n}",
22        "failOnStandardError": "true"
23      }
24    },
25    {
26      "environment": {},
27      "enabled": true,
28      "continueOnError": false,
29      "alwaysRun": false,
30      "displayName": "git clone",
31      "timeoutInMinutes": 0,
32      "refName": "Task2",
33      "task": {
34        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
35        "versionSpec": "1.*",
36        "definitionType": "task"
37      },
38      "inputs": {
39        "filename": "$(PB_Git)",
40        "arguments": "clone $(PB_VsoCorefxGitUrl) corefx",
41        "workingFolder": "",
42        "failOnStandardError": "false"
43      }
44    },
45    {
46      "environment": {},
47      "enabled": true,
48      "continueOnError": false,
49      "alwaysRun": false,
50      "displayName": "git checkout",
51      "timeoutInMinutes": 0,
52      "refName": "Task3",
53      "task": {
54        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
55        "versionSpec": "1.*",
56        "definitionType": "task"
57      },
58      "inputs": {
59        "filename": "$(PB_Git)",
60        "arguments": "checkout $(SourceVersion)",
61        "workingFolder": "corefx",
62        "failOnStandardError": "false"
63      }
64    },
65    {
66      "environment": {},
67      "enabled": true,
68      "continueOnError": false,
69      "alwaysRun": false,
70      "displayName": "Install Signing Plugin",
71      "timeoutInMinutes": 0,
72      "condition": "and(succeeded(), in(variables.PB_SignType, 'real', 'test'))",
73      "refName": "Task4",
74      "task": {
75        "id": "30666190-6959-11e5-9f96-f56098202fef",
76        "versionSpec": "1.*",
77        "definitionType": "task"
78      },
79      "inputs": {
80        "signType": "real",
81        "zipSources": "false",
82        "version": "",
83        "feedSource": "https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json"
84      }
85    },
86    {
87      "environment": {},
88      "enabled": true,
89      "continueOnError": false,
90      "alwaysRun": false,
91      "displayName": "Run $(Build.SourcesDirectory)\\corefx\\clean.cmd",
92      "timeoutInMinutes": 0,
93      "refName": "Task5",
94      "task": {
95        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
96        "versionSpec": "1.*",
97        "definitionType": "task"
98      },
99      "inputs": {
100        "filename": "$(Build.SourcesDirectory)\\corefx\\clean.cmd",
101        "arguments": "-all",
102        "workingFolder": "corefx",
103        "failOnStandardError": "false"
104      }
105    },
106    {
107      "environment": {},
108      "enabled": true,
109      "continueOnError": false,
110      "alwaysRun": false,
111      "displayName": "Run $(Build.SourcesDirectory)\\corefx\\sync.cmd",
112      "timeoutInMinutes": 0,
113      "refName": "Task6",
114      "task": {
115        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
116        "versionSpec": "1.*",
117        "definitionType": "task"
118      },
119      "inputs": {
120        "filename": "$(Build.SourcesDirectory)\\corefx\\sync.cmd",
121        "arguments": "$(PB_SyncArguments)",
122        "workingFolder": "corefx",
123        "failOnStandardError": "false"
124      }
125    },
126    {
127      "environment": {},
128      "enabled": true,
129      "continueOnError": false,
130      "alwaysRun": false,
131      "displayName": "Generate Version Assets",
132      "timeoutInMinutes": 0,
133      "refName": "Task7",
134      "task": {
135        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
136        "versionSpec": "1.*",
137        "definitionType": "task"
138      },
139      "inputs": {
140        "filename": "$(Build.SourcesDirectory)\\corefx\\build-managed.cmd",
141        "arguments": "-GenerateVersion -OfficialBuildId=$(OfficialBuildId)",
142        "workingFolder": "corefx",
143        "failOnStandardError": "false"
144      }
145    },
146    {
147      "environment": {},
148      "enabled": true,
149      "continueOnError": false,
150      "alwaysRun": false,
151      "displayName": "Run $(Build.SourcesDirectory)\\corefx\\build.cmd",
152      "timeoutInMinutes": 0,
153      "refName": "Task8",
154      "task": {
155        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
156        "versionSpec": "1.*",
157        "definitionType": "task"
158      },
159      "inputs": {
160        "filename": "$(Build.SourcesDirectory)\\corefx\\build.cmd",
161        "arguments": "-OfficialBuildId=$(OfficialBuildId) $(PB_BuildArguments)",
162        "workingFolder": "corefx",
163        "failOnStandardError": "false"
164      }
165    },
166    {
167      "environment": {},
168      "enabled": true,
169      "continueOnError": false,
170      "alwaysRun": false,
171      "displayName": "Push packages to Azure",
172      "timeoutInMinutes": 0,
173      "refName": "Task9",
174      "task": {
175        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
176        "versionSpec": "1.*",
177        "definitionType": "task"
178      },
179      "inputs": {
180        "filename": "$(Build.SourcesDirectory)\\corefx\\publish-packages.cmd",
181        "arguments": "-AzureAccount=$(PB_CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_Label) -- /p:OverwriteOnPublish=false",
182        "workingFolder": "corefx",
183        "failOnStandardError": "false"
184      }
185    },
186    {
187      "environment": {},
188      "enabled": true,
189      "continueOnError": false,
190      "alwaysRun": false,
191      "displayName": "Index symbol sources",
192      "timeoutInMinutes": 0,
193      "refName": "Task11",
194      "task": {
195        "id": "0675668a-7bba-4ccb-901d-5ad6554ca653",
196        "versionSpec": "1.*",
197        "definitionType": "task"
198      },
199      "inputs": {
200        "SymbolsPath": "",
201        "SearchPattern": "corefx\\bin\\*$(PB_Platform).$(PB_ConfigurationGroup)\\**\\*.pdb",
202        "SymbolsFolder": "",
203        "SkipIndexing": "false",
204        "TreatNotIndexedAsWarning": "false",
205        "SymbolsMaximumWaitTime": "",
206        "SymbolsProduct": "",
207        "SymbolsVersion": "",
208        "SymbolsArtifactName": "Symbols_$(PB_ConfigurationGroup)"
209      }
210    },
211    {
212      "environment": {},
213      "enabled": true,
214      "continueOnError": true,
215      "alwaysRun": true,
216      "displayName": "Copy Files to: $(Build.StagingDirectory)\\BuildLogs",
217      "timeoutInMinutes": 0,
218      "condition": "succeededOrFailed()",
219      "refName": "CopyFiles1",
220      "task": {
221        "id": "5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c",
222        "versionSpec": "2.*",
223        "definitionType": "task"
224      },
225      "inputs": {
226        "SourceFolder": "$(Build.SourcesDirectory)\\corefx",
227        "Contents": "*.log",
228        "TargetFolder": "$(Build.StagingDirectory)\\BuildLogs",
229        "CleanTargetFolder": "false",
230        "OverWrite": "false",
231        "flattenFolders": "false"
232      }
233    },
234    {
235      "environment": {},
236      "enabled": true,
237      "continueOnError": true,
238      "alwaysRun": true,
239      "displayName": "Publish Artifact: BuildLogs",
240      "timeoutInMinutes": 0,
241      "condition": "succeededOrFailed()",
242      "refName": "PublishBuildArtifacts2",
243      "task": {
244        "id": "2ff763a7-ce83-4e1f-bc89-0ae63477cebe",
245        "versionSpec": "1.*",
246        "definitionType": "task"
247      },
248      "inputs": {
249        "PathtoPublish": "$(Build.StagingDirectory)\\BuildLogs",
250        "ArtifactName": "BuildLogs",
251        "ArtifactType": "Container",
252        "TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)",
253        "Parallel": "false",
254        "ParallelCount": "8"
255      }
256    },
257    {
258      "environment": {},
259      "enabled": true,
260      "continueOnError": false,
261      "alwaysRun": false,
262      "displayName": "Execute cleanup tasks",
263      "timeoutInMinutes": 0,
264      "condition": "always()",
265      "refName": "Task12",
266      "task": {
267        "id": "521a94ea-9e68-468a-8167-6dcf361ea776",
268        "versionSpec": "1.*",
269        "definitionType": "task"
270      },
271      "inputs": {}
272    },
273    {
274      "environment": {},
275      "enabled": true,
276      "continueOnError": true,
277      "alwaysRun": false,
278      "displayName": "Final clean to remove any lingering process",
279      "timeoutInMinutes": 0,
280      "condition": "always()",
281      "refName": "Task13",
282      "task": {
283        "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
284        "versionSpec": "1.*",
285        "definitionType": "task"
286      },
287      "inputs": {
288        "filename": "$(Build.SourcesDirectory)\\corefx\\clean.cmd",
289        "arguments": "",
290        "workingFolder": "corefx",
291        "failOnStandardError": "false"
292      }
293    },
294    {
295      "environment": {},
296      "enabled": true,
297      "continueOnError": true,
298      "alwaysRun": false,
299      "displayName": "Build solution corefx\\Tools\\scripts\\vstsagent\\cleanupagent.proj",
300      "timeoutInMinutes": 0,
301      "condition": "always()",
302      "refName": "Task14",
303      "task": {
304        "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
305        "versionSpec": "1.*",
306        "definitionType": "task"
307      },
308      "inputs": {
309        "solution": "corefx\\Tools\\scripts\\vstsagent\\cleanupagent.proj",
310        "msbuildLocationMethod": "version",
311        "msbuildVersion": "14.0",
312        "msbuildArchitecture": "x86",
313        "msbuildLocation": "",
314        "platform": "",
315        "configuration": "",
316        "msbuildArguments": "/p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)",
317        "clean": "false",
318        "maximumCpuCount": "false",
319        "restoreNugetPackages": "false",
320        "logProjectEvents": "false",
321        "createLogFile": "false"
322      }
323    }
324  ],
325  "options": [
326    {
327      "enabled": false,
328      "definition": {
329        "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
330      },
331      "inputs": {
332        "workItemType": "234347",
333        "assignToRequestor": "true",
334        "additionalFields": "{}"
335      }
336    },
337    {
338      "enabled": false,
339      "definition": {
340        "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
341      },
342      "inputs": {
343        "additionalFields": "{}"
344      }
345    },
346    {
347      "enabled": false,
348      "definition": {
349        "id": "5d58cc01-7c75-450c-be18-a388ddb129ec"
350      },
351      "inputs": {
352        "branchFilters": "[\"+refs/heads/*\"]",
353        "additionalFields": "{}"
354      }
355    }
356  ],
357  "variables": {
358    "system.debug": {
359      "value": "false",
360      "allowOverride": true
361    },
362    "PB_ConfigurationGroup": {
363      "value": "Debug",
364      "allowOverride": true
365    },
366    "PB_Platform": {
367      "value": "x64",
368      "allowOverride": true
369    },
370    "PB_CloudDropAccountName": {
371      "value": "dotnetbuildoutput"
372    },
373    "CloudDropAccessToken": {
374      "value": null,
375      "isSecret": true
376    },
377    "OfficialBuildId": {
378      "value": "$(Build.BuildNumber)",
379      "allowOverride": true
380    },
381    "PB_Label": {
382      "value": "$(Build.BuildNumber)",
383      "allowOverride": true
384    },
385    "SourceVersion": {
386      "value": "HEAD",
387      "allowOverride": true
388    },
389    "PB_VsoAccountName": {
390      "value": "dn-bot"
391    },
392    "VsoPassword": {
393      "value": null,
394      "isSecret": true
395    },
396    "PB_VsoRepositoryName": {
397      "value": "DotNet-CoreFX-Trusted",
398      "allowOverride": true
399    },
400    "PB_VsoCorefxGitUrl": {
401      "value": "https://github.com/dotnet/corefx"
402    },
403    "PB_SourceBranch": {
404      "value": "master",
405      "allowOverride": true
406    },
407    "PB_Git": {
408      "value": "$(ProgramFiles)\\Git\\cmd\\git.exe"
409    },
410    "TeamName": {
411      "value": "DotNetCore"
412    },
413    "PB_RuntimeOS": {
414      "value": "win10"
415    },
416    "PB_CleanAgent": {
417      "value": "true"
418    },
419    "PB_SyncArguments": {
420      "value": "-p -- /p:ArchGroup=x64  /p:RuntimeOS=win10",
421      "allowOverride": true
422    },
423    "PB_BuildArguments": {
424      "value": "-buildArch=x64 -Release -- /p:SignType=$(PB_SignType) /p:RuntimeOS=win10",
425      "allowOverride": true
426    },
427    "PB_SignType": {
428      "value": "real",
429      "allowOverride": true
430    },
431    "PB_PackageVersionPropsUrl": {
432      "value": ""
433    },
434    "PACKAGEVERSIONPROPSURL": {
435      "value": "$(PB_PackageVersionPropsUrl)"
436    },
437    "PB_AssetRootUrl": {
438      "value": ""
439    }
440  },
441  "demands": [
442    "Agent.OS -equals windows_nt"
443  ],
444  "retentionRules": [
445    {
446      "branches": [
447        "+refs/heads/*"
448      ],
449      "artifacts": [],
450      "artifactTypesToDelete": [
451        "FilePath",
452        "SymbolStore"
453      ],
454      "daysToKeep": 10,
455      "minimumToKeep": 1,
456      "deleteBuildRecord": true,
457      "deleteTestResults": true
458    }
459  ],
460  "buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)",
461  "jobAuthorizationScope": "projectCollection",
462  "jobTimeoutInMinutes": 180,
463  "jobCancelTimeoutInMinutes": 5,
464  "repository": {
465    "properties": {
466      "labelSources": "0",
467      "reportBuildStatus": "true",
468      "fetchDepth": "0",
469      "gitLfsSupport": "false",
470      "skipSyncSource": "true",
471      "cleanOptions": "3",
472      "checkoutNestedSubmodules": "false",
473      "labelSourcesFormat": "$(build.buildNumber)"
474    },
475    "id": "0a2b2664-c1be-429c-9b40-8a24dee27a4a",
476    "type": "TfsGit",
477    "name": "DotNet-BuildPipeline",
478    "url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-BuildPipeline",
479    "defaultBranch": "refs/heads/master",
480    "clean": "false",
481    "checkoutSubmodules": false
482  },
483  "processParameters": {},
484  "quality": "definition",
485  "drafts": [],
486  "queue": {
487    "id": 36,
488    "name": "DotNet-Build",
489    "pool": {
490      "id": 39,
491      "name": "DotNet-Build"
492    }
493  },
494  "id": 5308,
495  "name": "DotNet-CoreFx-Trusted-Windows-NoTest",
496  "path": "\\",
497  "type": "build",
498  "queueStatus": "enabled",
499  "project": {
500    "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
501    "name": "DevDiv",
502    "description": "Visual Studio and DevDiv team project for git source code repositories.  Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv.  ",
503    "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
504    "state": "wellFormed",
505    "revision": 418098432,
506    "visibility": "organization"
507  }
508}