Merge pull request #10781 from rartemev/ilasm_path_length_fix
[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 $(GitHubRepo) $(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) $(portableBuild) skipnuget cross -skiprestore stripSymbols -OfficialBuildId=$(OfficialBuildId) -- /p:\"ConfigurationGroup=\"Release\" /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 $(portableBuild) -BuildType=$(PB_BuildType) -BuildArch=$(Architecture)",
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": "Run publish-packages.sh",
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=$(Label) -distroRid=$(Rid) -- /p:OverwriteOnPublish=true",
197         "workingFolder": "",
198         "failOnStandardError": "false"
199       }
200     },
201     {
202       "enabled": true,
203       "continueOnError": true,
204       "alwaysRun": true,
205       "displayName": "Create Copy Container",
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 $(DockerCommonRunArgs) echo",
215         "workingFolder": "",
216         "failOnStandardError": "false"
217       }
218     },
219     {
220       "enabled": true,
221       "continueOnError": true,
222       "alwaysRun": true,
223       "displayName": "Expose Docker repo for publishing",
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": "cp $(DockerContainerName):$(GitHubDirectory) $(DockerCopyDest)",
233         "workingFolder": "",
234         "failOnStandardError": "false"
235       }
236     },
237     {
238       "enabled": true,
239       "continueOnError": true,
240       "alwaysRun": true,
241       "displayName": "Copy Publish Artifact: BuildLogs",
242       "timeoutInMinutes": 0,
243       "task": {
244         "id": "1d341bb0-2106-458c-8422-d00bcea6512a",
245         "versionSpec": "1.*",
246         "definitionType": "task"
247       },
248       "inputs": {
249         "CopyRoot": "$(DockerCopyDest)",
250         "Contents": "**/*.log",
251         "ArtifactName": "BuildLogs",
252         "ArtifactType": "Container",
253         "TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)"
254       }
255     },
256     {
257       "enabled": true,
258       "continueOnError": true,
259       "alwaysRun": true,
260       "displayName": "Cleanup Docker",
261       "timeoutInMinutes": 0,
262       "task": {
263         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
264         "versionSpec": "1.*",
265         "definitionType": "task"
266       },
267       "inputs": {
268         "filename": "$(Build.SourcesDirectory)/Tools/scripts/docker/cleanup-docker.sh",
269         "arguments": "",
270         "workingFolder": "",
271         "failOnStandardError": "false"
272       }
273     },
274     {
275       "enabled": true,
276       "continueOnError": true,
277       "alwaysRun": true,
278       "displayName": "Cleanup Docker Volume",
279       "timeoutInMinutes": 0,
280       "task": {
281         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
282         "versionSpec": "1.*",
283         "definitionType": "task"
284       },
285       "inputs": {
286         "filename": "docker",
287         "arguments": "volume rm $(DockerVolumeName)",
288         "workingFolder": "",
289         "failOnStandardError": "false"
290       }
291     },
292     {
293       "enabled": true,
294       "continueOnError": true,
295       "alwaysRun": true,
296       "displayName": "Cleanup VSTS Agent",
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/msbuild.sh",
305         "arguments": "cleanupagent.proj /p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)",
306         "workingFolder": "$(Build.SourcesDirectory)/Tools/scripts/vstsagent/",
307         "failOnStandardError": "false"
308       }
309     }
310   ],
311   "options": [
312     {
313       "enabled": false,
314       "definition": {
315         "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
316       },
317       "inputs": {
318         "additionalFields": "{}"
319       }
320     },
321     {
322       "enabled": false,
323       "definition": {
324         "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
325       },
326       "inputs": {
327         "multipliers": "[]",
328         "parallel": "false",
329         "continueOnError": "true",
330         "additionalFields": "{}"
331       }
332     },
333     {
334       "enabled": false,
335       "definition": {
336         "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
337       },
338       "inputs": {
339         "workItemType": "234347",
340         "assignToRequestor": "true",
341         "additionalFields": "{}"
342       }
343     },
344     {
345       "enabled": false,
346       "definition": {
347         "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
348       },
349       "inputs": {
350         "additionalFields": "{}"
351       }
352     }
353   ],
354   "variables": {
355     "system.debug": {
356       "value": "false",
357       "allowOverride": true
358     },
359     "Platform": {
360       "value": "x64"
361     },
362     "PB_BuildType": {
363       "value": "Release"
364     },
365     "GitHubRepo": {
366       "value": "http://github.com/dotnet/coreclr.git"
367     },
368     "GitHubDirectory": {
369       "value": "/root/coreclr"
370     },
371     "DockerContainerName": {
372       "value": "coreclr-cross-$(Build.BuildId)"
373     },
374     "DockerImageName": {
375       "value": "$(DockerRepository):$(DockerTag)"
376     },
377     "DockerRepository": {
378       "value": "microsoft/dotnet-buildtools-prereqs"
379     },
380     "DockerTag": {
381       "value": "ubuntu1404_cross_prereqs_v1",
382       "allowOverride": true
383     },
384     "CloudDropAccountName": {
385       "value": "dotnetbuildoutput"
386     },
387     "CloudDropAccessToken": {
388       "value": null,
389       "isSecret": true
390     },
391     "OfficialBuildId": {
392       "value": "$(Build.BuildNumber)",
393       "allowOverride": true
394     },
395     "Label": {
396       "value": "$(Build.BuildNumber)"
397     },
398     "GitHubBranch": {
399       "value": "sni_plus_latestbuildtools"
400     },
401     "Priority": {
402       "value": "0"
403     },
404     "RepoAccessToken": {
405       "value": null,
406       "isSecret": true
407     },
408     "Architecture": {
409       "value": "arm"
410     },
411     "CommitToCheckout": {
412       "value": "HEAD",
413       "allowOverride": true
414     },
415     "DockerCopyDest": {
416       "value": "$(Build.BinariesDirectory)/docker_repo"
417     },
418     "portableBuild": {
419       "value": ""
420     },
421     "ROOTFS_DIR": {
422       "value": "/crossrootfs/$(Architecture)"
423     },
424     "DockerVolumeName": {
425       "value": "coreclr-cross-$(Build.BuildId)"
426     },
427     "DockerCommonRunArgs": {
428       "value": "--name $(DockerContainerName) -v \"$(DockerVolumeName):$(GitHubDirectory)\" -w=\"$(GitHubDirectory)\" $(DockerImageName)"
429     },
430     "PB_CleanAgent": {
431       "value": "true"
432     }
433   },
434   "demands": [
435     "Agent.OS -equals linux"
436   ],
437   "retentionRules": [
438     {
439       "branches": [
440         "+refs/heads/*"
441       ],
442       "artifacts": [],
443       "artifactTypesToDelete": [
444         "FilePath",
445         "SymbolStore"
446       ],
447       "daysToKeep": 10,
448       "minimumToKeep": 1,
449       "deleteBuildRecord": true,
450       "deleteTestResults": true
451     }
452   ],
453   "buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)-$(DockerTag)$(portableBuild)",
454   "jobAuthorizationScope": "projectCollection",
455   "jobTimeoutInMinutes": 90,
456   "repository": {
457     "properties": {
458       "labelSources": "0",
459       "reportBuildStatus": "true",
460       "fetchDepth": "0",
461       "gitLfsSupport": "false",
462       "skipSyncSource": "false",
463       "cleanOptions": "0"
464     },
465     "id": "670e3783-ab4f-44fc-9786-d332007da311",
466     "type": "TfsGit",
467     "name": "DotNet-CoreCLR-Trusted",
468     "url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-CoreCLR-Trusted",
469     "defaultBranch": "refs/heads/master",
470     "clean": "true",
471     "checkoutSubmodules": false
472   },
473   "processParameters": {},
474   "quality": "definition",
475   "queue": {
476     "pool": {
477       "id": 39,
478       "name": "DotNet-Build"
479     },
480     "id": 36,
481     "name": "DotNet-Build"
482   },
483   "path": "\\",
484   "type": "build",
485   "id": 5019,
486   "name": "DotNet-CoreClr-Trusted-Linux-Crossbuild",
487   "url": "https://devdiv.visualstudio.com/DefaultCollection/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_apis/build/Definitions/5019",
488   "project": {
489     "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
490     "name": "DevDiv",
491     "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.  ",
492     "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
493     "state": "wellFormed",
494     "revision": 418097633
495   }
496 }