Initial commit of checked in build definitions for CoreCLR
[platform/upstream/coreclr.git] / buildpipeline / DotNet-CoreClr-Trusted-Linux.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": true,
113       "continueOnError": false,
114       "alwaysRun": false,
115       "displayName": "Run build.sh",
116       "timeoutInMinutes": 0,
117       "task": {
118         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
119         "versionSpec": "1.*",
120         "definitionType": "task"
121       },
122       "inputs": {
123         "filename": "docker",
124         "arguments": "run --rm $(DockerCommonRunArgs) ./build.sh $(PB_BuildType) $(Architecture) $(portableBuild) skipnuget -skiprestore stripSymbols -OfficialBuildId=$(OfficialBuildId) -- /p:\"ConfigurationGroup=\"Release\" /flp:\"v=diag\"",
125         "workingFolder": "",
126         "failOnStandardError": "false"
127       }
128     },
129     {
130       "enabled": true,
131       "continueOnError": false,
132       "alwaysRun": false,
133       "displayName": "Run build-packages.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 $(DockerCommonRunArgs) ./build-packages.sh $(portableBuild) -BuildType=$(PB_BuildType) -BuildArch=$(Architecture)",
143         "workingFolder": "",
144         "failOnStandardError": "false"
145       }
146     },
147     {
148       "enabled": true,
149       "continueOnError": false,
150       "alwaysRun": false,
151       "displayName": "Run publish-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) ./publish-packages.sh -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -BuildType=$(PB_BuildType)  -BuildArch=$(Platform) -Container=$(Label) -distroRid=$(Rid) -- /p:OverwriteOnPublish=true",
161         "workingFolder": "",
162         "failOnStandardError": "false"
163       }
164     },
165     {
166       "enabled": true,
167       "continueOnError": true,
168       "alwaysRun": true,
169       "displayName": "Create Copy Container",
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 $(DockerCommonRunArgs) echo",
179         "workingFolder": "",
180         "failOnStandardError": "false"
181       }
182     },
183     {
184       "enabled": true,
185       "continueOnError": true,
186       "alwaysRun": true,
187       "displayName": "Expose Docker repo for publishing",
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": "cp $(DockerContainerName):$(GitHubDirectory) $(DockerCopyDest)",
197         "workingFolder": "",
198         "failOnStandardError": "false"
199       }
200     },
201     {
202       "enabled": true,
203       "continueOnError": true,
204       "alwaysRun": true,
205       "displayName": "Copy Publish Artifact: BuildLogs",
206       "timeoutInMinutes": 0,
207       "task": {
208         "id": "1d341bb0-2106-458c-8422-d00bcea6512a",
209         "versionSpec": "1.*",
210         "definitionType": "task"
211       },
212       "inputs": {
213         "CopyRoot": "$(DockerCopyDest)",
214         "Contents": "**/*.log",
215         "ArtifactName": "BuildLogs",
216         "ArtifactType": "Container",
217         "TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)"
218       }
219     },
220     {
221       "enabled": true,
222       "continueOnError": true,
223       "alwaysRun": true,
224       "displayName": "Cleanup Docker",
225       "timeoutInMinutes": 0,
226       "task": {
227         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
228         "versionSpec": "1.*",
229         "definitionType": "task"
230       },
231       "inputs": {
232         "filename": "$(Build.SourcesDirectory)/Tools/scripts/docker/cleanup-docker.sh",
233         "arguments": "",
234         "workingFolder": "",
235         "failOnStandardError": "false"
236       }
237     },
238     {
239       "enabled": true,
240       "continueOnError": true,
241       "alwaysRun": true,
242       "displayName": "Cleanup Docker Volume",
243       "timeoutInMinutes": 0,
244       "task": {
245         "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
246         "versionSpec": "1.*",
247         "definitionType": "task"
248       },
249       "inputs": {
250         "filename": "docker",
251         "arguments": "volume rm $(DockerVolumeName)",
252         "workingFolder": "",
253         "failOnStandardError": "false"
254       }
255     },
256     {
257       "enabled": true,
258       "continueOnError": true,
259       "alwaysRun": true,
260       "displayName": "Cleanup VSTS Agent",
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/msbuild.sh",
269         "arguments": "cleanupagent.proj /p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)",
270         "workingFolder": "$(Build.SourcesDirectory)/Tools/scripts/vstsagent/",
271         "failOnStandardError": "false"
272       }
273     }
274   ],
275   "options": [
276     {
277       "enabled": false,
278       "definition": {
279         "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
280       },
281       "inputs": {
282         "additionalFields": "{}"
283       }
284     },
285     {
286       "enabled": false,
287       "definition": {
288         "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
289       },
290       "inputs": {
291         "multipliers": "[]",
292         "parallel": "false",
293         "continueOnError": "true",
294         "additionalFields": "{}"
295       }
296     },
297     {
298       "enabled": false,
299       "definition": {
300         "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
301       },
302       "inputs": {
303         "workItemType": "234347",
304         "assignToRequestor": "true",
305         "additionalFields": "{}"
306       }
307     },
308     {
309       "enabled": false,
310       "definition": {
311         "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
312       },
313       "inputs": {
314         "additionalFields": "{}"
315       }
316     }
317   ],
318   "variables": {
319     "system.debug": {
320       "value": "false",
321       "allowOverride": true
322     },
323     "Platform": {
324       "value": "x64"
325     },
326     "PB_BuildType": {
327       "value": "Release"
328     },
329     "GitHubRepo": {
330       "value": "http://github.com/dotnet/coreclr.git"
331     },
332     "GitHubDirectory": {
333       "value": "/root/coreclr"
334     },
335     "DockerContainerName": {
336       "value": "coreclr-$(Build.BuildId)"
337     },
338     "DockerImageName": {
339       "value": "$(DockerRepository):$(DockerTag)"
340     },
341     "DockerRepository": {
342       "value": "microsoft/dotnet-buildtools-prereqs"
343     },
344     "DockerTag": {
345       "value": "debian82_prereqs_2",
346       "allowOverride": true
347     },
348     "CloudDropAccountName": {
349       "value": "dotnetbuildoutput"
350     },
351     "CloudDropAccessToken": {
352       "value": null,
353       "isSecret": true
354     },
355     "OfficialBuildId": {
356       "value": "$(Build.BuildNumber)",
357       "allowOverride": true
358     },
359     "Label": {
360       "value": "$(Build.BuildNumber)"
361     },
362     "GitHubBranch": {
363       "value": "sni_plus_latestbuildtools"
364     },
365     "Priority": {
366       "value": "0"
367     },
368     "RepoAccessToken": {
369       "value": null,
370       "isSecret": true
371     },
372     "Architecture": {
373       "value": "x64"
374     },
375     "CommitToCheckout": {
376       "value": "HEAD",
377       "allowOverride": true
378     },
379     "portableBuild": {
380       "value": ""
381     },
382     "DockerVolumeName": {
383       "value": "coreclr-$(Build.BuildId)"
384     },
385     "DockerCommonRunArgs": {
386       "value": "--name $(DockerContainerName) -v \"$(DockerVolumeName):$(GitHubDirectory)\" -w=\"$(GitHubDirectory)\" $(DockerImageName)"
387     },
388     "DockerCopyDest": {
389       "value": "$(Build.BinariesDirectory)/docker_repo"
390     },
391     "PB_CleanAgent": {
392       "value": "true"
393     }
394   },
395   "demands": [
396     "Agent.OS -equals linux"
397   ],
398   "retentionRules": [
399     {
400       "branches": [
401         "+refs/heads/*"
402       ],
403       "artifacts": [],
404       "artifactTypesToDelete": [
405         "FilePath",
406         "SymbolStore"
407       ],
408       "daysToKeep": 10,
409       "minimumToKeep": 1,
410       "deleteBuildRecord": true,
411       "deleteTestResults": true
412     }
413   ],
414   "buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)-$(DockerTag)$(portableBuild)",
415   "jobAuthorizationScope": "projectCollection",
416   "jobTimeoutInMinutes": 90,
417   "repository": {
418     "properties": {
419       "labelSources": "0",
420       "reportBuildStatus": "true",
421       "fetchDepth": "0",
422       "gitLfsSupport": "false",
423       "skipSyncSource": "false",
424       "cleanOptions": "1"
425     },
426     "id": "670e3783-ab4f-44fc-9786-d332007da311",
427     "type": "TfsGit",
428     "name": "DotNet-CoreCLR-Trusted",
429     "url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-CoreCLR-Trusted",
430     "defaultBranch": "refs/heads/master",
431     "clean": "true",
432     "checkoutSubmodules": false
433   },
434   "processParameters": {},
435   "quality": "definition",
436   "queue": {
437     "pool": {
438       "id": 39,
439       "name": "DotNet-Build"
440     },
441     "id": 36,
442     "name": "DotNet-Build"
443   },
444   "path": "\\",
445   "type": "build",
446   "id": 1713,
447   "name": "DotNet-CoreClr-Trusted-Linux",
448   "url": "https://devdiv.visualstudio.com/DefaultCollection/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_apis/build/Definitions/1713",
449   "project": {
450     "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
451     "name": "DevDiv",
452     "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.  ",
453     "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
454     "state": "wellFormed",
455     "revision": 418097633
456   }
457 }