2017-06-07 13:16:24 +00:00
{
"build" : [
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2017-10-19 20:04:20 +00:00
"displayName" : "Change permissions to agent folder for cleanup steps" ,
2017-06-07 13:16:24 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "sudo" ,
"arguments" : "chmod 777 -R ." ,
"workingFolder" : "$(Agent.WorkFolder)" ,
2017-06-07 13:16:24 +00:00
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2017-10-19 20:04:20 +00:00
"displayName" : "Delete files from $(PB_GitDirectory)" ,
2017-06-07 13:16:24 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
2017-10-19 20:04:20 +00:00
"id" : "b7e8b412-0437-4065-9371-edc5881de25b" ,
2017-06-07 13:16:24 +00:00
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"SourceFolder" : "$(PB_GitDirectory)" ,
"Contents" : "**\n.gitignore\n.editorconfig\n.gitattributes\n.gitmirrorall\n.git/**\n.git"
2017-06-07 13:16:24 +00:00
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2017-10-19 20:04:20 +00:00
"displayName" : "git clone" ,
2017-06-07 13:16:24 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "git" ,
"arguments" : "clone $(PB_VsoCorefxGitUrl) $(PB_GitDirectory)" ,
2017-06-07 13:16:24 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2017-10-19 20:04:20 +00:00
"displayName" : "git checkout" ,
2017-06-07 13:16:24 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "git" ,
"arguments" : "checkout $(SourceVersion)" ,
"workingFolder" : "$(PB_GitDirectory)" ,
2017-06-07 13:16:24 +00:00
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2017-10-19 20:04:20 +00:00
"displayName" : "Initialize tools" ,
2017-06-07 13:16:24 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "$(PB_GitDirectory)/init-tools.sh" ,
"arguments" : "" ,
"workingFolder" : "$(PB_GitDirectory)" ,
2017-06-07 13:16:24 +00:00
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2017-10-19 20:04:20 +00:00
"displayName" : "Initialize Docker" ,
2017-06-07 13:16:24 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "$(PB_GitDirectory)/Tools/scripts/docker/init-docker.sh" ,
"arguments" : "$(PB_DockerImageName)" ,
2017-06-07 13:16:24 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Generate Version Assets" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
2017-10-19 20:04:20 +00:00
"arguments" : "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/build-managed.sh -OfficialBuildId=$(OfficialBuildId) -- /t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true" ,
2017-06-07 13:16:24 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Run sync.sh" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
2017-10-19 20:04:20 +00:00
"arguments" : "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/sync.sh -p -- /p:ArchGroup=$(PB_Architecture)" ,
2017-06-07 13:16:24 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Run build.sh" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
2017-10-19 20:04:20 +00:00
"arguments" : "run -e ROOTFS_DIR $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/build.sh -OfficialBuildId=$(OfficialBuildId) $(PB_BuildArguments)" ,
2017-06-07 13:16:24 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Run publish-packages.sh" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
2017-10-19 20:04:20 +00:00
"arguments" : "run $(PB_DockerCommonRunArgs) $(PB_DockerVolumeName)/publish-packages.sh -AzureAccount=$(PB_CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_Label) -verbose -- /p:OverwriteOnPublish=false" ,
2017-06-07 13:16:24 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "Copy Publish Artifact: BuildLogs" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "1d341bb0-2106-458c-8422-d00bcea6512a" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"CopyRoot" : "$(PB_GitDirectory)" ,
2017-06-07 13:16:24 +00:00
"Contents" : "*.log" ,
"ArtifactName" : "BuildLogs" ,
"ArtifactType" : "Container" ,
"TargetPath" : "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)"
}
} ,
{
"enabled" : true ,
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "Cleanup Docker" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "$(PB_GitDirectory)/Tools/scripts/docker/cleanup-docker.sh" ,
2017-06-07 13:16:24 +00:00
"arguments" : "" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "Cleanup VSTS Agent" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-10-19 20:04:20 +00:00
"filename" : "$(PB_GitDirectory)/Tools/msbuild.sh" ,
2017-06-07 13:16:24 +00:00
"arguments" : "cleanupagent.proj /p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)" ,
"workingFolder" : "$(Build.SourcesDirectory)/corefx/Tools/scripts/vstsagent/" ,
"failOnStandardError" : "false"
}
}
] ,
"options" : [
2017-10-19 20:04:20 +00:00
{
"enabled" : false ,
"definition" : {
"id" : "5d58cc01-7c75-450c-be18-a388ddb129ec"
} ,
"inputs" : {
"branchFilters" : "[\"+refs/heads/*\"]" ,
"additionalFields" : "{}"
}
} ,
{
"enabled" : false ,
"definition" : {
"id" : "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
} ,
"inputs" : {
"additionalFields" : "{}"
}
} ,
2017-06-07 13:16:24 +00:00
{
"enabled" : false ,
"definition" : {
"id" : "7c555368-ca64-4199-add6-9ebaf0b0137d"
} ,
"inputs" : {
"multipliers" : "[]" ,
"parallel" : "false" ,
"continueOnError" : "true" ,
"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" : {
2017-10-19 20:04:20 +00:00
"CloudDropAccessToken" : {
"value" : null ,
"isSecret" : true
} ,
"GitHubBranch" : {
"value" : "sni_plus_latestbuildtools"
} ,
"OfficialBuildId" : {
"value" : "$(Build.BuildNumber)"
} ,
"PB_Architecture" : {
"value" : "arm"
} ,
"PB_BuildArguments" : {
"value" : "-BuildArch=$(PB_Architecture)"
} ,
"PB_CleanAgent" : {
"value" : "true"
} ,
"PB_CloudDropAccountName" : {
"value" : "dotnetbuildoutput"
2017-06-07 13:16:24 +00:00
} ,
"PB_ConfigurationGroup" : {
"value" : "Release"
} ,
2017-10-19 20:04:20 +00:00
"PB_DockerCommonRunArgs" : {
"value" : "--rm --name $(PB_DockerContainerName) -v \"$(PB_GitDirectory):$(PB_DockerVolumeName)\" -w=\"$(PB_DockerVolumeName)\" $(PB_DockerImageName)"
2017-06-07 13:16:24 +00:00
} ,
"PB_DockerContainerName" : {
"value" : "corefx-cross-$(Build.BuildId)"
} ,
2017-10-19 20:04:20 +00:00
"PB_DockerCopyDest" : {
"value" : "$(Build.BinariesDirectory)/docker_repo"
} ,
2017-06-07 13:16:24 +00:00
"PB_DockerImageName" : {
"value" : "$(PB_DockerRepository):$(PB_DockerTag)"
} ,
"PB_DockerRepository" : {
"value" : "microsoft/dotnet-buildtools-prereqs"
} ,
"PB_DockerTag" : {
2017-10-19 20:04:20 +00:00
"value" : "ubuntu-14.04-cross-0cd4667-20172211042239" ,
2017-06-07 13:16:24 +00:00
"allowOverride" : true
} ,
2017-10-19 20:04:20 +00:00
"PB_DockerVolumeName" : {
"value" : "/root/corefx-$(Build.BuildId)"
2017-06-07 13:16:24 +00:00
} ,
2017-10-19 20:04:20 +00:00
"PB_GitDirectory" : {
"value" : "$(Build.SourcesDirectory)/corefx"
2017-06-07 13:16:24 +00:00
} ,
"PB_Label" : {
"value" : "$(Build.BuildNumber)"
} ,
2017-10-19 20:04:20 +00:00
"PB_VsoAccountName" : {
"value" : "dn-bot"
2017-06-07 13:16:24 +00:00
} ,
2017-10-19 20:04:20 +00:00
"PB_VsoCorefxGitUrl" : {
"value" : "https://$(PB_VsoAccountName):$(VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/$(PB_VsoRepositoryName)/"
2017-06-07 13:16:24 +00:00
} ,
2017-10-19 20:04:20 +00:00
"PB_VsoRepositoryName" : {
"value" : "DotNet-CoreFX-Trusted"
} ,
"portableBuild" : {
2017-06-07 13:16:24 +00:00
"value" : ""
} ,
2017-10-19 20:04:20 +00:00
"ROOTFS_DIR" : {
"value" : "/crossrootfs/$(PB_Architecture)" ,
"allowOverride" : true
} ,
2017-06-07 13:16:24 +00:00
"SourceVersion" : {
"value" : "HEAD" ,
"allowOverride" : true
} ,
2017-10-19 20:04:20 +00:00
"system.debug" : {
"value" : "false" ,
2017-06-07 13:16:24 +00:00
"allowOverride" : true
} ,
2017-10-19 20:04:20 +00:00
"VsoPassword" : {
"value" : null ,
"isSecret" : true
2017-06-07 13:16:24 +00:00
}
} ,
"demands" : [
2017-08-21 15:34:15 +00:00
"Agent.OS -equals linux"
2017-06-07 13:16:24 +00:00
] ,
"retentionRules" : [
{
"branches" : [
"+refs/heads/*"
] ,
"artifacts" : [ ] ,
"artifactTypesToDelete" : [
"FilePath" ,
"SymbolStore"
] ,
"daysToKeep" : 10 ,
"minimumToKeep" : 1 ,
"deleteBuildRecord" : true ,
"deleteTestResults" : true
}
] ,
"buildNumberFormat" : "$(date:yyyyMMdd)$(rev:-rr)" ,
"jobAuthorizationScope" : "projectCollection" ,
"jobTimeoutInMinutes" : 90 ,
2017-10-19 20:04:20 +00:00
"jobCancelTimeoutInMinutes" : 5 ,
2017-06-07 13:16:24 +00:00
"repository" : {
"properties" : {
"labelSources" : "0" ,
"reportBuildStatus" : "true" ,
"fetchDepth" : "0" ,
"gitLfsSupport" : "false" ,
"skipSyncSource" : "false" ,
2017-10-19 20:04:20 +00:00
"cleanOptions" : "0" ,
"checkoutNestedSubmodules" : "false" ,
"labelSourcesFormat" : "$(build.buildNumber)"
2017-06-07 13:16:24 +00:00
} ,
"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" ,
2017-08-21 15:34:15 +00:00
"clean" : "false" ,
2017-06-07 13:16:24 +00:00
"checkoutSubmodules" : false
} ,
2017-10-19 20:04:20 +00:00
"processParameters" : { } ,
2017-06-07 13:16:24 +00:00
"quality" : "definition" ,
"queue" : {
2017-10-19 20:04:20 +00:00
"id" : 36 ,
"name" : "DotNet-Build" ,
2017-06-07 13:16:24 +00:00
"pool" : {
"id" : 39 ,
"name" : "DotNet-Build"
2017-10-19 20:04:20 +00:00
}
2017-06-07 13:16:24 +00:00
} ,
"id" : 5247 ,
"name" : "DotNet-CoreFx-Trusted-Linux-Crossbuild" ,
2017-10-19 20:04:20 +00:00
"path" : "\\" ,
"type" : "build" ,
2017-06-07 13:16:24 +00:00
"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" ,
2017-10-19 20:04:20 +00:00
"revision" : 418097767 ,
"visibility" : "private"
2017-06-07 13:16:24 +00:00
}
}