Merge pull request #14534 from CarolEidt/RegSelectCleanup
[platform/upstream/coreclr.git] / buildpipeline / DotNet-CoreClr-Trusted-Linux-Crossbuild.json
1 {
2   "build": [
3     {
4       "enabled": true,
5       "continueOnError": false,
6       "alwaysRun": false,
7       "displayName": "Initialize tools",
8       "timeoutInMinutes": 0,
9       "task": {
10         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
11         "versionSpec": "1.*",
12         "definitionType": "task"
13       },
14       "inputs": {
15         "filename": "$(Build.SourcesDirectory)/init-tools.sh",
16         "arguments": "",
17         "workingFolder": "",
18         "failOnStandardError": "false"
19       }
20     },
21     {
22       "enabled": true,
23       "continueOnError": false,
24       "alwaysRun": false,
25       "displayName": "Initialize Docker",
26       "timeoutInMinutes": 0,
27       "task": {
28         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
29         "versionSpec": "1.*",
30         "definitionType": "task"
31       },
32       "inputs": {
33         "filename": "$(Build.SourcesDirectory)/Tools/scripts/docker/init-docker.sh",
34         "arguments": "$(DockerImageName)",
35         "workingFolder": "",
36         "failOnStandardError": "false"
37       }
38     },
39     {
40       "enabled": true,
41       "continueOnError": false,
42       "alwaysRun": false,
43       "displayName": "Clone repository",
44       "timeoutInMinutes": 0,
45       "task": {
46         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
47         "versionSpec": "1.*",
48         "definitionType": "task"
49       },
50       "inputs": {
51         "filename": "docker",
52         "arguments": "run --rm $(DockerCommonRunArgs) git clone $(VsoCoreClrGitUrl) $(GitHubDirectory)",
53         "workingFolder": "",
54         "failOnStandardError": "false"
55       }
56     },
57     {
58       "enabled": true,
59       "continueOnError": false,
60       "alwaysRun": false,
61       "displayName": "Run clean.sh",
62       "timeoutInMinutes": 0,
63       "task": {
64         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
65         "versionSpec": "1.*",
66         "definitionType": "task"
67       },
68       "inputs": {
69         "filename": "docker",
70         "arguments": "run --rm $(DockerCommonRunArgs) ./clean.sh",
71         "workingFolder": "",
72         "failOnStandardError": "false"
73       }
74     },
75     {
76       "enabled": true,
77       "continueOnError": false,
78       "alwaysRun": false,
79       "displayName": "Check out the specified commit",
80       "timeoutInMinutes": 0,
81       "task": {
82         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
83         "versionSpec": "1.*",
84         "definitionType": "task"
85       },
86       "inputs": {
87         "filename": "docker",
88         "arguments": "run --rm $(DockerCommonRunArgs) git checkout $(Build.SourceVersion)",
89         "workingFolder": "",
90         "failOnStandardError": "false"
91       }
92     },
93     {
94       "enabled": true,
95       "continueOnError": false,
96       "alwaysRun": false,
97       "displayName": "Run sync.sh",
98       "timeoutInMinutes": 0,
99       "task": {
100         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
101         "versionSpec": "1.*",
102         "definitionType": "task"
103       },
104       "inputs": {
105         "filename": "docker",
106         "arguments": "run --rm $(DockerCommonRunArgs) ./sync.sh",
107         "workingFolder": "",
108         "failOnStandardError": "false"
109       }
110     },
111     {
112       "enabled": false,
113       "continueOnError": false,
114       "alwaysRun": false,
115       "displayName": "Run build-rootfs.sh",
116       "timeoutInMinutes": 0,
117       "task": {
118         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
119         "versionSpec": "1.*",
120         "definitionType": "task"
121       },
122       "inputs": {
123         "filename": "sudo",
124         "arguments": "docker run --privileged --rm $(DockerCommonRunArgs) ./cross/build-rootfs.sh $(Architecture) $(CrossToolsetVersion) $(SkipUnmount)",
125         "workingFolder": "",
126         "failOnStandardError": "false"
127       }
128     },
129     {
130       "enabled": true,
131       "continueOnError": false,
132       "alwaysRun": false,
133       "displayName": "Run build.sh",
134       "timeoutInMinutes": 0,
135       "task": {
136         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
137         "versionSpec": "1.*",
138         "definitionType": "task"
139       },
140       "inputs": {
141         "filename": "docker",
142         "arguments": "run --rm -e ROOTFS_DIR $(DockerCommonRunArgs) ./build.sh $(PB_BuildType) $(Architecture) skipnuget cross -skiprestore stripSymbols -OfficialBuildId=$(OfficialBuildId) -- /flp:\"v=diag\"",
143         "workingFolder": "",
144         "failOnStandardError": "false"
145       }
146     },
147     {
148       "enabled": true,
149       "continueOnError": false,
150       "alwaysRun": false,
151       "displayName": "Run build-packages.sh",
152       "timeoutInMinutes": 0,
153       "task": {
154         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
155         "versionSpec": "1.*",
156         "definitionType": "task"
157       },
158       "inputs": {
159         "filename": "docker",
160         "arguments": "run --rm $(DockerCommonRunArgs) ./build-packages.sh -BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -- /p:OfficialBuildId=$(OfficialBuildId)",
161         "workingFolder": "",
162         "failOnStandardError": "false"
163       }
164     },
165     {
166       "enabled": false,
167       "continueOnError": false,
168       "alwaysRun": false,
169       "displayName": "Cleanup RootFS",
170       "timeoutInMinutes": 0,
171       "task": {
172         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
173         "versionSpec": "1.*",
174         "definitionType": "task"
175       },
176       "inputs": {
177         "filename": "docker",
178         "arguments": "run --rm --privileged $(DockerCommonRunArgs) git clean -xdf $(GitHubDirectory)/cross/",
179         "workingFolder": "",
180         "failOnStandardError": "false"
181       }
182     },
183     {
184       "enabled": true,
185       "continueOnError": false,
186       "alwaysRun": false,
187       "displayName": "Publish packages",
188       "timeoutInMinutes": 0,
189       "task": {
190         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
191         "versionSpec": "1.*",
192         "definitionType": "task"
193       },
194       "inputs": {
195         "filename": "docker",
196         "arguments": "run --rm $(DockerCommonRunArgs) ./publish-packages.sh -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -Container=$(PB_ContainerName) -distroRid=$(Rid) -PublishPackages -- /p:RelativePath=$(PB_BlobNamePrefix)$(PB_BuildType)/pkg /p:PublishFlatContainer=$(PublishFlat) /p:OverwriteOnPublish=true",
197         "workingFolder": "",
198         "failOnStandardError": "false"
199       }
200     },
201     {
202       "enabled": true,
203       "continueOnError": false,
204       "alwaysRun": false,
205       "displayName": "Publish symbol packages",
206       "timeoutInMinutes": 0,
207       "task": {
208         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
209         "versionSpec": "1.*",
210         "definitionType": "task"
211       },
212       "inputs": {
213         "filename": "docker",
214         "arguments": "run --rm $(DockerCommonRunArgs) ./publish-packages.sh -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -Container=$(PB_ContainerName) -distroRid=$(Rid) -PublishSymbols -- /p:RelativePath=$(PB_BlobNamePrefix)$(PB_BuildType)/symbolpkg /p:OverwriteOnPublish=true",
215         "workingFolder": "",
216         "failOnStandardError": "false"
217       }
218     },
219     {
220       "enabled": true,
221       "continueOnError": false,
222       "alwaysRun": false,
223       "displayName": "Publish test native binaries",
224       "timeoutInMinutes": 0,
225       "task": {
226         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
227         "versionSpec": "1.*",
228         "definitionType": "task"
229       },
230       "inputs": {
231         "filename": "docker",
232         "arguments": "run --rm $(DockerCommonRunArgs) ./publish-packages.sh -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -Container=$(PB_ContainerName) -distroRid=$(Rid) -PublishTestNativeBins -- /p:RelativePath=$(PB_BlobNamePrefix)$(PB_BuildType)/TestNativeBins/$(Rid)-$(Architecture) /p:OverwriteOnPublish=true",
233         "workingFolder": "",
234         "failOnStandardError": "false"
235       }
236     },
237     {
238       "enabled": true,
239       "continueOnError": true,
240       "alwaysRun": true,
241       "displayName": "Create Copy Container",
242       "timeoutInMinutes": 0,
243       "task": {
244         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
245         "versionSpec": "1.*",
246         "definitionType": "task"
247       },
248       "inputs": {
249         "filename": "docker",
250         "arguments": "run $(DockerCommonRunArgs) echo",
251         "workingFolder": "",
252         "failOnStandardError": "false"
253       }
254     },
255     {
256       "enabled": true,
257       "continueOnError": true,
258       "alwaysRun": true,
259       "displayName": "Expose Docker repo for publishing",
260       "timeoutInMinutes": 0,
261       "task": {
262         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
263         "versionSpec": "1.*",
264         "definitionType": "task"
265       },
266       "inputs": {
267         "filename": "docker",
268         "arguments": "cp $(DockerContainerName):$(GitHubDirectory) $(DockerCopyDest)",
269         "workingFolder": "",
270         "failOnStandardError": "false"
271       }
272     },
273     {
274       "enabled": true,
275       "continueOnError": true,
276       "alwaysRun": true,
277       "displayName": "Copy Publish Artifact: BuildLogs",
278       "timeoutInMinutes": 0,
279       "task": {
280         "id": "1d341bb0-2106-458c-8422-d00bcea6512a",
281         "versionSpec": "1.*",
282         "definitionType": "task"
283       },
284       "inputs": {
285         "CopyRoot": "$(DockerCopyDest)",
286         "Contents": "**/*.log",
287         "ArtifactName": "BuildLogs",
288         "ArtifactType": "Container",
289         "TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)"
290       }
291     },
292     {
293       "enabled": true,
294       "continueOnError": true,
295       "alwaysRun": true,
296       "displayName": "Cleanup Docker",
297       "timeoutInMinutes": 0,
298       "task": {
299         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
300         "versionSpec": "1.*",
301         "definitionType": "task"
302       },
303       "inputs": {
304         "filename": "$(Build.SourcesDirectory)/Tools/scripts/docker/cleanup-docker.sh",
305         "arguments": "",
306         "workingFolder": "",
307         "failOnStandardError": "false"
308       }
309     },
310     {
311       "enabled": true,
312       "continueOnError": true,
313       "alwaysRun": true,
314       "displayName": "Cleanup VSTS Agent",
315       "timeoutInMinutes": 0,
316       "task": {
317         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
318         "versionSpec": "1.*",
319         "definitionType": "task"
320       },
321       "inputs": {
322         "filename": "$(Build.SourcesDirectory)/Tools/msbuild.sh",
323         "arguments": "cleanupagent.proj /p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)",
324         "workingFolder": "$(Build.SourcesDirectory)/Tools/scripts/vstsagent/",
325         "failOnStandardError": "false"
326       }
327     }
328   ],
329   "options": [
330     {
331       "enabled": false,
332       "definition": {
333         "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
334       },
335       "inputs": {
336         "additionalFields": "{}"
337       }
338     },
339     {
340       "enabled": false,
341       "definition": {
342         "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
343       },
344       "inputs": {
345         "multipliers": "[]",
346         "parallel": "false",
347         "continueOnError": "true",
348         "additionalFields": "{}"
349       }
350     },
351     {
352       "enabled": false,
353       "definition": {
354         "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
355       },
356       "inputs": {
357         "workItemType": "234347",
358         "assignToRequestor": "true",
359         "additionalFields": "{}"
360       }
361     },
362     {
363       "enabled": false,
364       "definition": {
365         "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
366       },
367       "inputs": {
368         "additionalFields": "{}"
369       }
370     }
371   ],
372   "variables": {
373     "system.debug": {
374       "value": "false",
375       "allowOverride": true
376     },
377     "Platform": {
378       "value": "x64"
379     },
380     "PB_BuildType": {
381       "value": "Release"
382     },
383     "GitHubRepo": {
384       "value": "http://github.com/dotnet/coreclr.git"
385     },
386     "GitHubDirectory": {
387       "value": "/root/coreclr"
388     },
389     "DockerContainerName": {
390       "value": "coreclr-cross-$(Build.BuildId)"
391     },
392     "DockerImageName": {
393       "value": "$(DockerRepository):$(DockerTag)"
394     },
395     "DockerRepository": {
396       "value": "microsoft/dotnet-buildtools-prereqs"
397     },
398     "DockerTag": {
399       "value": "ubuntu-14.04-cross-0cd4667-20170319080304",
400       "allowOverride": true
401     },
402     "CloudDropAccountName": {
403       "value": "dotnetbuildoutput"
404     },
405     "CloudDropAccessToken": {
406       "value": null,
407       "isSecret": true
408     },
409     "OfficialBuildId": {
410       "value": "$(Build.BuildNumber)",
411       "allowOverride": true
412     },
413     "Label": {
414       "value": "$(Build.BuildNumber)"
415     },
416     "GitHubBranch": {
417       "value": "sni_plus_latestbuildtools"
418     },
419     "Priority": {
420       "value": "0"
421     },
422     "RepoAccessToken": {
423       "value": null,
424       "isSecret": true
425     },
426     "Architecture": {
427       "value": "arm"
428     },
429     "CommitToCheckout": {
430       "value": "HEAD",
431       "allowOverride": true
432     },
433     "DockerCopyDest": {
434       "value": "$(Build.BinariesDirectory)/docker_repo"
435     },
436     "ROOTFS_DIR": {
437       "value": "/crossrootfs/$(Architecture)"
438     },
439     "DockerVolumeName": {
440       "value": "coreclr-cross-$(Build.BuildId)"
441     },
442     "DockerCommonRunArgs": {
443       "value": "--name $(DockerContainerName) -v \"$(DockerVolumeName):$(GitHubDirectory)\" -w=\"$(GitHubDirectory)\" $(DockerImageName)"
444     },
445     "PB_CleanAgent": {
446       "value": "true"
447     },
448     "VsoAccountName": {
449       "value": "dn-bot"
450     },
451     "VsoCoreClrGitUrl": {
452       "value": "https://$(VsoAccountName):$(VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/$(VsoRepositoryName)/"
453     },
454     "VsoPassword": {
455       "value": null,
456       "isSecret": true
457     },
458     "VsoRepositoryName": {
459       "value": "DotNet-CoreCLR-Trusted"
460     }
461   },
462   "demands": [
463     "Agent.OS -equals linux"
464   ],
465   "retentionRules": [
466     {
467       "branches": [
468         "+refs/heads/*"
469       ],
470       "artifacts": [],
471       "artifactTypesToDelete": [
472         "FilePath",
473         "SymbolStore"
474       ],
475       "daysToKeep": 10,
476       "minimumToKeep": 1,
477       "deleteBuildRecord": true,
478       "deleteTestResults": true
479     }
480   ],
481   "buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)-$(DockerTag)",
482   "jobAuthorizationScope": "projectCollection",
483   "jobTimeoutInMinutes": 90,
484   "repository": {
485     "properties": {
486       "labelSources": "0",
487       "reportBuildStatus": "true",
488       "fetchDepth": "0",
489       "gitLfsSupport": "false",
490       "skipSyncSource": "false",
491       "cleanOptions": "0"
492     },
493     "id": "670e3783-ab4f-44fc-9786-d332007da311",
494     "type": "TfsGit",
495     "name": "DotNet-CoreCLR-Trusted",
496     "url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-CoreCLR-Trusted",
497     "defaultBranch": "refs/heads/master",
498     "clean": "true",
499     "checkoutSubmodules": false
500   },
501   "processParameters": {},
502   "quality": "definition",
503   "queue": {
504     "pool": {
505       "id": 39,
506       "name": "DotNet-Build"
507     },
508     "id": 36,
509     "name": "DotNet-Build"
510   },
511   "path": "\\",
512   "type": "build",
513   "id": 5019,
514   "name": "DotNet-CoreClr-Trusted-Linux-Crossbuild",
515   "url": "https://devdiv.visualstudio.com/DefaultCollection/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_apis/build/Definitions/5019",
516   "project": {
517     "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
518     "name": "DevDiv",
519     "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.  ",
520     "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
521     "state": "wellFormed",
522     "revision": 418097633
523   }
524 }