|
| 1 | +{ |
| 2 | + "build": [ |
| 3 | + { |
| 4 | + "environment": {}, |
| 5 | + "enabled": true, |
| 6 | + "continueOnError": true, |
| 7 | + "alwaysRun": false, |
| 8 | + "displayName": "Run AgentTools/Begin.sh", |
| 9 | + "timeoutInMinutes": 0, |
| 10 | + "condition": "succeededOrFailed()", |
| 11 | + "task": { |
| 12 | + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", |
| 13 | + "versionSpec": "2.*", |
| 14 | + "definitionType": "task" |
| 15 | + }, |
| 16 | + "inputs": { |
| 17 | + "targetType": "inline", |
| 18 | + "filePath": "", |
| 19 | + "arguments": "", |
| 20 | + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.sh\") {\n \"Begin.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.sh\n} else {\n \"Begin.sh script does not exist. Moving on...\"\n}", |
| 21 | + "errorActionPreference": "continue", |
| 22 | + "failOnStderr": "false", |
| 23 | + "ignoreLASTEXITCODE": "true", |
| 24 | + "workingDirectory": "" |
| 25 | + } |
| 26 | + }, |
| 27 | + { |
| 28 | + "environment": {}, |
| 29 | + "enabled": true, |
| 30 | + "continueOnError": false, |
| 31 | + "alwaysRun": false, |
| 32 | + "displayName": "Run $(Agent.BuildDirectory)/s/clean.sh", |
| 33 | + "timeoutInMinutes": 0, |
| 34 | + "refName": "Task1", |
| 35 | + "task": { |
| 36 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 37 | + "versionSpec": "1.*", |
| 38 | + "definitionType": "task" |
| 39 | + }, |
| 40 | + "inputs": { |
| 41 | + "filename": "$(Agent.BuildDirectory)/s/clean.sh", |
| 42 | + "arguments": "-all", |
| 43 | + "workingFolder": "", |
| 44 | + "failOnStandardError": "false" |
| 45 | + } |
| 46 | + }, |
| 47 | + { |
| 48 | + "environment": {}, |
| 49 | + "enabled": true, |
| 50 | + "continueOnError": false, |
| 51 | + "alwaysRun": false, |
| 52 | + "displayName": "Run $(Agent.BuildDirectory)/s/sync.sh", |
| 53 | + "timeoutInMinutes": 0, |
| 54 | + "refName": "Task2", |
| 55 | + "task": { |
| 56 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 57 | + "versionSpec": "1.*", |
| 58 | + "definitionType": "task" |
| 59 | + }, |
| 60 | + "inputs": { |
| 61 | + "filename": "$(Agent.BuildDirectory)/s/sync.sh", |
| 62 | + "arguments": " -- /p:BuildType=$(PB_BuildType)", |
| 63 | + "workingFolder": "", |
| 64 | + "failOnStandardError": "false" |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "environment": {}, |
| 69 | + "enabled": true, |
| 70 | + "continueOnError": false, |
| 71 | + "alwaysRun": false, |
| 72 | + "displayName": "Run $(Agent.BuildDirectory)/s/build.sh", |
| 73 | + "timeoutInMinutes": 0, |
| 74 | + "refName": "Task3", |
| 75 | + "task": { |
| 76 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 77 | + "versionSpec": "1.*", |
| 78 | + "definitionType": "task" |
| 79 | + }, |
| 80 | + "inputs": { |
| 81 | + "filename": "$(Agent.BuildDirectory)/s/build.sh", |
| 82 | + "arguments": "$(PB_BuildType) $(Architecture) skipnuget -skiprestore stripSymbols -OfficialBuildId=$(OfficialBuildId)", |
| 83 | + "workingFolder": "", |
| 84 | + "failOnStandardError": "false" |
| 85 | + } |
| 86 | + }, |
| 87 | + { |
| 88 | + "environment": {}, |
| 89 | + "enabled": true, |
| 90 | + "continueOnError": false, |
| 91 | + "alwaysRun": false, |
| 92 | + "displayName": "Run $(Agent.BuildDirectory)/s/build-packages.sh", |
| 93 | + "timeoutInMinutes": 0, |
| 94 | + "refName": "Task4", |
| 95 | + "task": { |
| 96 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 97 | + "versionSpec": "1.*", |
| 98 | + "definitionType": "task" |
| 99 | + }, |
| 100 | + "inputs": { |
| 101 | + "filename": "$(Agent.BuildDirectory)/s/build-packages.sh", |
| 102 | + "arguments": "-BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -- /p:OfficialBuildId=$(OfficialBuildId)", |
| 103 | + "workingFolder": "", |
| 104 | + "failOnStandardError": "false" |
| 105 | + } |
| 106 | + }, |
| 107 | + { |
| 108 | + "environment": {}, |
| 109 | + "enabled": true, |
| 110 | + "continueOnError": false, |
| 111 | + "alwaysRun": false, |
| 112 | + "displayName": "Publish packages", |
| 113 | + "timeoutInMinutes": 0, |
| 114 | + "refName": "Task5", |
| 115 | + "task": { |
| 116 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 117 | + "versionSpec": "1.*", |
| 118 | + "definitionType": "task" |
| 119 | + }, |
| 120 | + "inputs": { |
| 121 | + "filename": "$(Agent.BuildDirectory)/s/publish-packages.sh", |
| 122 | + "arguments": "-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", |
| 123 | + "workingFolder": "", |
| 124 | + "failOnStandardError": "false" |
| 125 | + } |
| 126 | + }, |
| 127 | + { |
| 128 | + "environment": {}, |
| 129 | + "enabled": true, |
| 130 | + "continueOnError": false, |
| 131 | + "alwaysRun": false, |
| 132 | + "displayName": "Publish symbol packages", |
| 133 | + "timeoutInMinutes": 0, |
| 134 | + "refName": "Task6", |
| 135 | + "task": { |
| 136 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 137 | + "versionSpec": "1.*", |
| 138 | + "definitionType": "task" |
| 139 | + }, |
| 140 | + "inputs": { |
| 141 | + "filename": "$(Agent.BuildDirectory)/s/publish-packages.sh", |
| 142 | + "arguments": "-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", |
| 143 | + "workingFolder": "", |
| 144 | + "failOnStandardError": "false" |
| 145 | + } |
| 146 | + }, |
| 147 | + { |
| 148 | + "environment": {}, |
| 149 | + "enabled": true, |
| 150 | + "continueOnError": false, |
| 151 | + "alwaysRun": false, |
| 152 | + "displayName": "Publish test native binaries", |
| 153 | + "timeoutInMinutes": 0, |
| 154 | + "refName": "Task7", |
| 155 | + "task": { |
| 156 | + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", |
| 157 | + "versionSpec": "1.*", |
| 158 | + "definitionType": "task" |
| 159 | + }, |
| 160 | + "inputs": { |
| 161 | + "filename": "$(Agent.BuildDirectory)/s/publish-packages.sh", |
| 162 | + "arguments": "-AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -BuildType=$(PB_BuildType) -BuildArch=$(Architecture) -Container=$(PB_ContainerName) -distroRid=$(Rid) -PublishSymbols -PublishTestNativeBins -- /p:RelativePath=$(PB_BlobNamePrefix)$(PB_BuildType)/TestNativeBins/$(Rid)-$(Architecture) /p:OverwriteOnPublish=true", |
| 163 | + "workingFolder": "", |
| 164 | + "failOnStandardError": "false" |
| 165 | + } |
| 166 | + }, |
| 167 | + { |
| 168 | + "environment": {}, |
| 169 | + "enabled": true, |
| 170 | + "continueOnError": true, |
| 171 | + "alwaysRun": true, |
| 172 | + "displayName": "Copy Files to: $(Build.StagingDirectory)\\BuildLogs", |
| 173 | + "timeoutInMinutes": 0, |
| 174 | + "condition": "succeededOrFailed()", |
| 175 | + "refName": "CopyFiles1", |
| 176 | + "task": { |
| 177 | + "id": "5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c", |
| 178 | + "versionSpec": "2.*", |
| 179 | + "definitionType": "task" |
| 180 | + }, |
| 181 | + "inputs": { |
| 182 | + "SourceFolder": "", |
| 183 | + "Contents": "**/*.log", |
| 184 | + "TargetFolder": "$(Build.StagingDirectory)\\BuildLogs", |
| 185 | + "CleanTargetFolder": "false", |
| 186 | + "OverWrite": "false", |
| 187 | + "flattenFolders": "false" |
| 188 | + } |
| 189 | + }, |
| 190 | + { |
| 191 | + "environment": {}, |
| 192 | + "enabled": true, |
| 193 | + "continueOnError": true, |
| 194 | + "alwaysRun": true, |
| 195 | + "displayName": "Publish Artifact: BuildLogs", |
| 196 | + "timeoutInMinutes": 0, |
| 197 | + "condition": "succeededOrFailed()", |
| 198 | + "refName": "PublishBuildArtifacts1", |
| 199 | + "task": { |
| 200 | + "id": "2ff763a7-ce83-4e1f-bc89-0ae63477cebe", |
| 201 | + "versionSpec": "1.*", |
| 202 | + "definitionType": "task" |
| 203 | + }, |
| 204 | + "inputs": { |
| 205 | + "PathtoPublish": "$(Build.StagingDirectory)\\BuildLogs", |
| 206 | + "ArtifactName": "BuildLogs", |
| 207 | + "ArtifactType": "Container", |
| 208 | + "TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)", |
| 209 | + "Parallel": "false", |
| 210 | + "ParallelCount": "8" |
| 211 | + } |
| 212 | + }, |
| 213 | + { |
| 214 | + "environment": {}, |
| 215 | + "enabled": true, |
| 216 | + "continueOnError": true, |
| 217 | + "alwaysRun": true, |
| 218 | + "displayName": "Run AgentTools/End.sh", |
| 219 | + "timeoutInMinutes": 0, |
| 220 | + "condition": "succeededOrFailed()", |
| 221 | + "task": { |
| 222 | + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", |
| 223 | + "versionSpec": "2.*", |
| 224 | + "definitionType": "task" |
| 225 | + }, |
| 226 | + "inputs": { |
| 227 | + "targetType": "inline", |
| 228 | + "filePath": "", |
| 229 | + "arguments": "", |
| 230 | + "script": "if (Test-Path \"$(AgentToolsPath)\\End.sh\") {\n \"End.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.sh\n} else {\n \"End.sh script does not exist. Moving on...\"\n}", |
| 231 | + "errorActionPreference": "continue", |
| 232 | + "failOnStderr": "false", |
| 233 | + "ignoreLASTEXITCODE": "true", |
| 234 | + "workingDirectory": "" |
| 235 | + } |
| 236 | + } |
| 237 | + ], |
| 238 | + "options": [ |
| 239 | + { |
| 240 | + "enabled": false, |
| 241 | + "definition": { |
| 242 | + "id": "a9db38f9-9fdc-478c-b0f9-464221e58316" |
| 243 | + }, |
| 244 | + "inputs": { |
| 245 | + "workItemType": "234347", |
| 246 | + "assignToRequestor": "true", |
| 247 | + "additionalFields": "{}" |
| 248 | + } |
| 249 | + }, |
| 250 | + { |
| 251 | + "enabled": false, |
| 252 | + "definition": { |
| 253 | + "id": "57578776-4c22-4526-aeb0-86b6da17ee9c" |
| 254 | + }, |
| 255 | + "inputs": { |
| 256 | + "additionalFields": "{}" |
| 257 | + } |
| 258 | + }, |
| 259 | + { |
| 260 | + "enabled": false, |
| 261 | + "definition": { |
| 262 | + "id": "5d58cc01-7c75-450c-be18-a388ddb129ec" |
| 263 | + }, |
| 264 | + "inputs": { |
| 265 | + "branchFilters": "[\"+refs/heads/*\"]", |
| 266 | + "additionalFields": "{}" |
| 267 | + } |
| 268 | + } |
| 269 | + ], |
| 270 | + "variables": { |
| 271 | + "system.debug": { |
| 272 | + "value": "false", |
| 273 | + "allowOverride": true |
| 274 | + }, |
| 275 | + "PB_BuildType": { |
| 276 | + "value": "Release" |
| 277 | + }, |
| 278 | + "Architecture": { |
| 279 | + "value": "x64" |
| 280 | + }, |
| 281 | + "CloudDropAccountName": { |
| 282 | + "value": "dotnetbuildoutput" |
| 283 | + }, |
| 284 | + "CloudDropAccessToken": { |
| 285 | + "value": null, |
| 286 | + "isSecret": true |
| 287 | + }, |
| 288 | + "OfficialBuildId": { |
| 289 | + "value": "$(Build.BuildNumber)" |
| 290 | + }, |
| 291 | + "Label": { |
| 292 | + "value": "$(Build.BuildNumber)" |
| 293 | + } |
| 294 | + }, |
| 295 | + "demands": [], |
| 296 | + "retentionRules": [ |
| 297 | + { |
| 298 | + "branches": [ |
| 299 | + "+refs/heads/*" |
| 300 | + ], |
| 301 | + "artifacts": [], |
| 302 | + "artifactTypesToDelete": [ |
| 303 | + "FilePath", |
| 304 | + "SymbolStore" |
| 305 | + ], |
| 306 | + "daysToKeep": 10, |
| 307 | + "minimumToKeep": 1, |
| 308 | + "deleteBuildRecord": true, |
| 309 | + "deleteTestResults": true |
| 310 | + } |
| 311 | + ], |
| 312 | + "buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)", |
| 313 | + "jobAuthorizationScope": "projectCollection", |
| 314 | + "jobTimeoutInMinutes": 60, |
| 315 | + "jobCancelTimeoutInMinutes": 5, |
| 316 | + "repository": { |
| 317 | + "properties": { |
| 318 | + "labelSources": "0", |
| 319 | + "reportBuildStatus": "true", |
| 320 | + "fetchDepth": "0", |
| 321 | + "gitLfsSupport": "false", |
| 322 | + "skipSyncSource": "false", |
| 323 | + "cleanOptions": "0", |
| 324 | + "checkoutNestedSubmodules": "false", |
| 325 | + "labelSourcesFormat": "$(build.buildNumber)" |
| 326 | + }, |
| 327 | + "id": "670e3783-ab4f-44fc-9786-d332007da311", |
| 328 | + "type": "TfsGit", |
| 329 | + "name": "DotNet-CoreCLR-Trusted", |
| 330 | + "url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-CoreCLR-Trusted", |
| 331 | + "defaultBranch": "refs/heads/master", |
| 332 | + "clean": "true", |
| 333 | + "checkoutSubmodules": false |
| 334 | + }, |
| 335 | + "processParameters": {}, |
| 336 | + "quality": "definition", |
| 337 | + "drafts": [], |
| 338 | + "queue": { |
| 339 | + "id": 681, |
| 340 | + "name": "VSEng-MicroBuildMacSierra", |
| 341 | + "pool": { |
| 342 | + "id": 120, |
| 343 | + "name": "VSEng-MicroBuildMacSierra" |
| 344 | + } |
| 345 | + }, |
| 346 | + "id": 1680, |
| 347 | + "name": "DotNet-CoreClr-Trusted-Mac", |
| 348 | + "path": "\\", |
| 349 | + "type": "build", |
| 350 | + "queueStatus": "enabled", |
| 351 | + "project": { |
| 352 | + "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee", |
| 353 | + "name": "DevDiv", |
| 354 | + "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. ", |
| 355 | + "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee", |
| 356 | + "state": "wellFormed", |
| 357 | + "revision": 418098432, |
| 358 | + "visibility": "organization" |
| 359 | + } |
| 360 | +} |
0 commit comments