linux-packaging-mono/external/corefx/buildpipeline/DotNet-CoreFx-Trusted-Linux.json
Xamarin Public Jenkins (auto-signing) e2950ec768 Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
2018-01-29 19:03:06 +00:00

560 lines
17 KiB
JSON

{
"build": [
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Change permissions to agent folder for cleanup steps",
"timeoutInMinutes": 0,
"refName": "Task1",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "sudo",
"arguments": "chmod 777 -R .",
"workingFolder": "$(Agent.WorkFolder)",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": true,
"alwaysRun": false,
"displayName": "Delete files from $(PB_GitDirectory)",
"timeoutInMinutes": 0,
"refName": "Task2",
"task": {
"id": "b7e8b412-0437-4065-9371-edc5881de25b",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"SourceFolder": "$(PB_GitDirectory)",
"Contents": "**\n.gitignore\n.editorconfig\n.gitattributes\n.gitmirrorall\n.git/**\n.git"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "git clone",
"timeoutInMinutes": 0,
"refName": "Task3",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "git",
"arguments": "clone $(PB_VsoCorefxGitUrl) $(PB_GitDirectory)",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "git checkout",
"timeoutInMinutes": 0,
"refName": "Task4",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "git",
"arguments": "checkout $(SourceVersion)",
"workingFolder": "$(PB_GitDirectory)",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Create host machine tools sandbox",
"timeoutInMinutes": 0,
"refName": "Task5",
"task": {
"id": "5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c",
"versionSpec": "2.*",
"definitionType": "task"
},
"inputs": {
"SourceFolder": "$(PB_GitDirectory)",
"Contents": "init-tools.sh\nBuildToolsVersion.txt\nDotnetCLIVersion.txt\ninit-tools.msbuild\ndependencies.props",
"TargetFolder": "$(DockerHost_Sandbox)",
"CleanTargetFolder": "false",
"OverWrite": "false",
"flattenFolders": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Initialize tools in sandbox for host machine",
"timeoutInMinutes": 0,
"refName": "Task5",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "$(DockerHost_Sandbox)/init-tools.sh",
"arguments": "",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Initialize Docker",
"timeoutInMinutes": 0,
"refName": "Task6",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "$(DockerHost_ToolsDirectory)/scripts/docker/init-docker.sh",
"arguments": "$(PB_DockerImageName)",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Generate version assets",
"timeoutInMinutes": 0,
"refName": "Task7",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "docker",
"arguments": "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/build-managed.sh -OfficialBuildId=$(OfficialBuildId) -- /t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Run sync",
"timeoutInMinutes": 0,
"refName": "Task8",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "docker",
"arguments": "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/sync.sh $(PB_SyncArguments)",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Run build.sh",
"timeoutInMinutes": 0,
"refName": "Task9",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "docker",
"arguments": "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/build.sh -OfficialBuildId=$(OfficialBuildId) $(PB_BuildArguments)",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Build tests",
"timeoutInMinutes": 0,
"condition": "and(succeeded(), ne(variables.PB_SkipTests, 'true'), ne(variables.PB_SkipTestBuild, 'true'))",
"refName": "Task10",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "docker",
"arguments": "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/build-tests.sh $(PB_BuildTestsArguments)",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Create Helix Test Jobs",
"timeoutInMinutes": 0,
"condition": "and(succeeded(), ne(variables.PB_SkipTests, 'true'), ne(variables.PB_EnableCloudTest, 'false'))",
"refName": "Task11",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "docker",
"arguments": "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/Tools/msbuild.sh $(PB_DockerVolumeName)/src/upload-tests.proj $(PB_CreateHelixArguments) /p:\"CloudDropAccountName=$(PB_CloudDropAccountName)\" /p:\"CloudResultsAccountName=$(PB_CloudResultsAccountName)\" /p:\"CloudDropAccessToken=$(CloudDropAccessToken)\" /p:\"CloudResultsAccessToken=$(PB_CloudResultsAccessToken)\" /p:\"HelixApiAccessKey=$(HelixApiAccessKey)\" /p:HelixApiEndpoint=$(PB_HelixApiEndPoint) /p:\"Branch=$(SourceBranch)\" /p:TargetQueues=$(PB_TargetQueue) /p:\"OfficialBuildId=$(OfficialBuildId)\"",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Push packages to Azure",
"timeoutInMinutes": 0,
"refName": "Task12",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "docker",
"arguments": "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/publish-packages.sh -AzureAccount=$(PB_CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_Label) -verbose -- /p:OverwriteOnPublish=false",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": true,
"alwaysRun": true,
"displayName": "Copy Files to: $(Build.StagingDirectory)\\BuildLogs",
"timeoutInMinutes": 0,
"condition": "succeededOrFailed()",
"refName": "CopyFiles1",
"task": {
"id": "5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c",
"versionSpec": "2.*",
"definitionType": "task"
},
"inputs": {
"SourceFolder": "$(PB_GitDirectory)",
"Contents": "*.log",
"TargetFolder": "$(Build.StagingDirectory)\\BuildLogs",
"CleanTargetFolder": "false",
"OverWrite": "false",
"flattenFolders": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": true,
"alwaysRun": true,
"displayName": "Publish Artifact: BuildLogs",
"timeoutInMinutes": 0,
"condition": "succeededOrFailed()",
"refName": "PublishBuildArtifacts2",
"task": {
"id": "2ff763a7-ce83-4e1f-bc89-0ae63477cebe",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"PathtoPublish": "$(Build.StagingDirectory)\\BuildLogs",
"ArtifactName": "BuildLogs",
"ArtifactType": "Container",
"TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)",
"Parallel": "false",
"ParallelCount": "8"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": true,
"alwaysRun": false,
"displayName": "Cleanup Docker",
"timeoutInMinutes": 0,
"condition": "always()",
"refName": "Task14",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "$(DockerHost_ToolsDirectory)/scripts/docker/cleanup-docker.sh",
"arguments": "",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
"continueOnError": true,
"alwaysRun": false,
"displayName": "Cleanup VSTS Agent",
"timeoutInMinutes": 0,
"condition": "always()",
"refName": "Task15",
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "$(DockerHost_ToolsDirectory)/msbuild.sh",
"arguments": "cleanupagent.proj /p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)",
"workingFolder": "$(DockerHost_ToolsDirectory)/scripts/vstsagent/",
"failOnStandardError": "false"
}
}
],
"options": [
{
"enabled": false,
"definition": {
"id": "5d58cc01-7c75-450c-be18-a388ddb129ec"
},
"inputs": {
"branchFilters": "[\"+refs/heads/*\"]",
"additionalFields": "{}"
}
},
{
"enabled": false,
"definition": {
"id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
},
"inputs": {
"workItemType": "234347",
"assignToRequestor": "true",
"additionalFields": "{}"
}
},
{
"enabled": false,
"definition": {
"id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
},
"inputs": {
"additionalFields": "{}"
}
}
],
"variables": {
"CloudDropAccessToken": {
"value": null,
"isSecret": true
},
"DockerHost_Sandbox": {
"value": "$(Build.StagingDirectory)/HostSandbox"
},
"DockerHost_ToolsDirectory": {
"value": "$(DockerHost_Sandbox)/Tools"
},
"OfficialBuildId": {
"value": "$(Build.BuildNumber)",
"allowOverride": true
},
"PB_BuildArguments": {
"value": "-buildArch=x64 -Release -stripSymbols",
"allowOverride": true
},
"PB_BuildTestsArguments": {
"value": "-buildArch=x64 -Release -SkipTests -Outerloop -- /p:ArchiveTests=true /p:EnableDumpling=true",
"allowOverride": true
},
"PB_CleanAgent": {
"value": "true"
},
"PB_CloudDropAccountName": {
"value": "dotnetbuildoutput"
},
"PB_CloudResultsAccessToken": {
"value": null,
"isSecret": true
},
"PB_CloudResultsAccountName": {
"value": "dotnetjobresult"
},
"PB_CreateHelixArguments": {
"value": "\"/p:ArchGroup=x64 /p:ConfigurationGroup=Release /p:TestProduct=corefx /p:TimeoutInSeconds=1200 /p:TargetOS=Linux",
"allowOverride": true
},
"PB_DockerCommonRunArgs": {
"value": "--rm --name $(PB_DockerContainerName) -v \"$(PB_GitDirectory):$(PB_DockerVolumeName)\" -w=\"$(PB_DockerVolumeName)\" -e \"PACKAGEVERSIONPROPSURL=$(PB_PackageVersionPropsUrl)\" $(PB_DockerImageName)"
},
"PB_DockerContainerName": {
"value": "corefx-$(Build.BuildId)"
},
"PB_DockerCopyDest": {
"value": "$(Build.BinariesDirectory)/docker_repo"
},
"PB_DockerImageName": {
"value": "$(PB_DockerRepository):$(PB_DockerTag)"
},
"PB_DockerRepository": {
"value": "microsoft/dotnet-buildtools-prereqs"
},
"PB_DockerTag": {
"value": "centos-7-d485f41-20173404063424",
"allowOverride": true
},
"PB_DockerVolumeName": {
"value": "/root/corefx-$(Build.BuildId)"
},
"PB_GitDirectory": {
"value": "$(Build.SourcesDirectory)/corefx"
},
"PB_Label": {
"value": "$(Build.BuildNumber)",
"allowOverride": true
},
"PB_SyncArguments": {
"value": "-p -- /p:ArchGroup=x64",
"allowOverride": true
},
"PB_TargetQueue": {
"value": "Centos.73.Amd64+RedHat.72.Amd64+RedHat.73.Amd64+Debian.87.Amd64+Debian.90.Amd64+Ubuntu.1404.Amd64+Ubuntu.1604.Amd64+Ubuntu.1704.Amd64+suse.422.amd64+SLES.12.Amd64+fedora.25.amd64+Fedora.26.Amd64"
},
"PB_VsoAccountName": {
"value": "dn-bot"
},
"PB_VsoCorefxGitUrl": {
"value": "https://$(PB_VsoAccountName):$(VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/$(PB_VsoRepositoryName)/"
},
"PB_VsoRepositoryName": {
"value": "DotNet-CoreFX-Trusted"
},
"SourceVersion": {
"value": "HEAD",
"allowOverride": true
},
"system.debug": {
"value": "false",
"allowOverride": true
},
"VsoPassword": {
"value": null,
"isSecret": true
},
"PB_SkipTests": {
"value": "false",
"allowOverride": true
},
"PB_PackageVersionPropsUrl": {
"value": ""
},
"PB_AssetRootUrl": {
"value": ""
}
},
"demands": [
"Agent.OS -equals linux"
],
"retentionRules": [
{
"branches": [
"+refs/heads/*"
],
"artifacts": [
"build.SourceLabel"
],
"artifactTypesToDelete": [],
"daysToKeep": 10,
"minimumToKeep": 1,
"deleteBuildRecord": true,
"deleteTestResults": true
}
],
"buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)",
"jobAuthorizationScope": "projectCollection",
"jobTimeoutInMinutes": 60,
"jobCancelTimeoutInMinutes": 5,
"repository": {
"properties": {
"labelSources": "0",
"reportBuildStatus": "true",
"fetchDepth": "0",
"gitLfsSupport": "false",
"skipSyncSource": "true",
"cleanOptions": "0",
"checkoutNestedSubmodules": "false",
"labelSourcesFormat": "$(build.buildNumber)"
},
"id": "58fa2458-e392-4373-ba2b-dd3ef0c2d7ce",
"type": "TfsGit",
"name": "DotNet-CoreFX-Trusted",
"url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-CoreFX-Trusted",
"defaultBranch": "refs/heads/master",
"clean": "false",
"checkoutSubmodules": false
},
"processParameters": {},
"quality": "definition",
"drafts": [],
"queue": {
"id": 36,
"name": "DotNet-Build",
"pool": {
"id": 39,
"name": "DotNet-Build"
}
},
"id": 5008,
"name": "DotNet-CoreFx-Trusted-Linux",
"path": "\\",
"type": "build",
"queueStatus": "enabled",
"project": {
"id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
"name": "DevDiv",
"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. ",
"url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
"state": "wellFormed",
"revision": 418098432,
"visibility": "organization"
}
}