2017-04-10 11:41:01 +00:00
{
"build" : [
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Delete files from $(Build.SourcesDirectory)" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "b7e8b412-0437-4065-9371-edc5881de25b" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"SourceFolder" : "$(Build.SourcesDirectory)" ,
"Contents" : "**\n.gitignore"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "git clone" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "git" ,
"arguments" : "clone $(PB_VsoCorefxGitUrl) corefx" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "git checkout" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "git" ,
"arguments" : "checkout $(SourceVersion)" ,
"workingFolder" : "$(Build.SourcesDirectory)/corefx" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : true ,
"displayName" : "Initialize tools" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "$(Build.SourcesDirectory)/corefx/init-tools.sh" ,
"arguments" : "" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
2017-06-07 13:16:24 +00:00
"alwaysRun" : false ,
"displayName" : "Initialize Docker" ,
2017-04-10 11:41:01 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-06-07 13:16:24 +00:00
"filename" : "$(Build.SourcesDirectory)/corefx/Tools/scripts/docker/init-docker.sh" ,
"arguments" : "$(PB_DockerImageName)" ,
2017-04-10 11:41:01 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Start detached docker container" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "run -d -w $(PB_GitDirectory) --name $(PB_DockerContainerName) $(PB_DockerImageName) sleep 7200" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Clone repository" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "exec $(PB_DockerContainerName) git clone $(PB_VsoCorefxGitUrl) $(PB_GitDirectory)" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Check out the specified commit" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "exec $(PB_DockerContainerName) git checkout $(SourceVersion)" ,
"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" ,
"arguments" : "exec $(PB_DockerContainerName) $(PB_GitDirectory)/build-managed.sh -OfficialBuildId=$(OfficialBuildId) -- /t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Run sync" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "exec $(PB_DockerContainerName) $(PB_GitDirectory)/sync.sh $(PB_SyncArguments)" ,
"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" ,
"arguments" : "exec $(PB_DockerContainerName) $(PB_GitDirectory)/build.sh $(PB_BuildArguments)" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Build tests" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "exec $(PB_DockerContainerName) $(PB_GitDirectory)/build-tests.sh $(PB_BuildTestsArguments)" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Create Helix Test Jobs" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
2017-06-07 13:16:24 +00:00
"arguments" : "exec $(PB_DockerContainerName) $(PB_GitDirectory)/Tools/msbuild.sh $(PB_GitDirectory)/src/upload-tests.proj $(PB_CreateHelixArguments) /p:\"CloudDropAccountName=$(PB_CloudDropAccountName)\" /p:\"CloudResultsAccountName=$(PB_CloudResultsAccountName)\" /p:\"CloudDropAccessToken=$(CloudDropAccessToken)\" /p:\"CloudResultsAccessToken=$(OutputCloudResultsAccessToken)\" /p:\"HelixApiAccessKey=$(HelixApiAccessKey)\" /p:HelixApiEndpoint=$(PB_HelixApiEndPoint) /p:\"Branch=$(SourceBranch)\" /p:TargetQueues=$(PB_TargetQueue) /p:\"OfficialBuildId=$(OfficialBuildId)\"" ,
2017-04-10 11:41:01 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Push packages to Azure" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "exec $(PB_DockerContainerName) $(PB_GitDirectory)/publish-packages.sh -AzureAccount=$(PB_CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_Label) -verbose -- /p:OverwriteOnPublish=true" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
2017-06-07 13:16:24 +00:00
"continueOnError" : true ,
"alwaysRun" : true ,
2017-04-10 11:41:01 +00:00
"displayName" : "Remove old docker build logs" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "b7e8b412-0437-4065-9371-edc5881de25b" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"SourceFolder" : "$(PB_DockerCopyDest)" ,
"Contents" : "*"
}
} ,
{
"enabled" : true ,
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "Expose docker repo for publishing" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
"arguments" : "cp $(PB_DockerContainerName):$(PB_GitDirectory) $(PB_DockerCopyDest)" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
2017-06-07 13:16:24 +00:00
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "Remove container" ,
2017-04-10 11:41:01 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "docker" ,
2017-06-07 13:16:24 +00:00
"arguments" : "rm -f $(PB_DockerContainerName)" ,
2017-04-10 11:41:01 +00:00
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
{
"enabled" : true ,
2017-06-07 13:16:24 +00:00
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "Copy Publish Artifact: BuildLogs" ,
2017-04-10 11:41:01 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
2017-06-07 13:16:24 +00:00
"id" : "1d341bb0-2106-458c-8422-d00bcea6512a" ,
2017-04-10 11:41:01 +00:00
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-06-07 13:16:24 +00:00
"CopyRoot" : "$(PB_DockerCopyDest)/corefx" ,
"Contents" : "*.log" ,
"ArtifactName" : "BuildLogs" ,
"ArtifactType" : "Container" ,
"TargetPath" : "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)"
2017-04-10 11:41:01 +00:00
}
} ,
{
"enabled" : true ,
2017-06-07 13:16:24 +00:00
"continueOnError" : true ,
2017-04-10 11:41:01 +00:00
"alwaysRun" : true ,
2017-06-07 13:16:24 +00:00
"displayName" : "Cleanup Docker" ,
2017-04-10 11:41:01 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
2017-06-07 13:16:24 +00:00
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
2017-04-10 11:41:01 +00:00
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-06-07 13:16:24 +00:00
"filename" : "$(Build.SourcesDirectory)/corefx/Tools/scripts/docker/cleanup-docker.sh" ,
"arguments" : "" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
2017-04-10 11:41:01 +00:00
}
} ,
{
"enabled" : true ,
"continueOnError" : true ,
"alwaysRun" : true ,
2017-06-07 13:16:24 +00:00
"displayName" : "Cleanup VSTS Agent" ,
2017-04-10 11:41:01 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2017-06-07 13:16:24 +00:00
"filename" : "$(Build.SourcesDirectory)/corefx/Tools/msbuild.sh" ,
"arguments" : "cleanupagent.proj /p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)" ,
"workingFolder" : "$(Build.SourcesDirectory)/corefx/Tools/scripts/vstsagent/" ,
2017-04-10 11:41:01 +00:00
"failOnStandardError" : "false"
}
}
] ,
"options" : [
{
"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" : {
"system.debug" : {
"value" : "false" ,
"allowOverride" : true
} ,
"PB_GitDirectory" : {
"value" : "/root/corefx"
} ,
"PB_DockerContainerName" : {
2017-06-07 13:16:24 +00:00
"value" : "corefx-$(Build.BuildId)"
2017-04-10 11:41:01 +00:00
} ,
"PB_DockerImageName" : {
"value" : "$(PB_DockerRepository):$(PB_DockerTag)"
} ,
"PB_DockerRepository" : {
2017-06-07 13:16:24 +00:00
"value" : "microsoft/dotnet-buildtools-prereqs"
2017-04-10 11:41:01 +00:00
} ,
"PB_DockerTag" : {
"value" : "debian82_prereqs_2" ,
"allowOverride" : true
} ,
"PB_CloudDropAccountName" : {
"value" : "dotnetbuildoutput"
} ,
"CloudDropAccessToken" : {
"value" : null ,
"isSecret" : true
} ,
"OfficialBuildId" : {
"value" : "$(Build.BuildNumber)" ,
"allowOverride" : true
} ,
"PB_Label" : {
"value" : "$(Build.BuildNumber)" ,
"allowOverride" : true
} ,
"SourceVersion" : {
"value" : "HEAD" ,
"allowOverride" : true
} ,
"PB_DockerCopyDest" : {
"value" : "$(Build.BinariesDirectory)/docker_repo"
} ,
"PB_VsoAccountName" : {
"value" : "dn-bot"
} ,
"VsoPassword" : {
"value" : null ,
"isSecret" : true
} ,
2017-06-07 13:16:24 +00:00
"PB_VsoRepositoryName" : {
2017-04-10 11:41:01 +00:00
"value" : "DotNet-CoreFX-Trusted" ,
"allowOverride" : true
} ,
"PB_VsoCorefxGitUrl" : {
"value" : "https://github.com/dotnet/corefx"
} ,
"PB_BuildArguments" : {
"value" : "-buildArch=x64 -Release" ,
"allowOverride" : true
} ,
"PB_SyncArguments" : {
"value" : "-p -- /p:ArchGroup=x64" ,
"allowOverride" : true
} ,
"PB_BuildTestsArguments" : {
2017-06-07 13:16:24 +00:00
"value" : "-BuildArch=x64 -Release -SkipTests" ,
2017-04-10 11:41:01 +00:00
"allowOverride" : true
} ,
"PB_CreateHelixArguments" : {
"value" : "/t:CloudBuild /p:ArchGroup=x64 /p:ConfigurationGroup=Debug /p:\"EnableCloudTest=true /p:\"TestProduct=corefx /p:\"TimeoutInSeconds=1200\" /p:\"TargetOS=Linux\" /p:FilterToOSGroup=Linux" ,
"allowOverride" : true
2017-06-07 13:16:24 +00:00
} ,
"PB_CleanAgent" : {
"value" : "true"
2017-04-10 11:41:01 +00:00
}
} ,
"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)-$(PB_DockerTag)" ,
"jobAuthorizationScope" : "projectCollection" ,
"jobTimeoutInMinutes" : 60 ,
"repository" : {
"properties" : {
"labelSources" : "0" ,
"reportBuildStatus" : "true" ,
"fetchDepth" : "0" ,
"gitLfsSupport" : "false" ,
"skipSyncSource" : "true" ,
"cleanOptions" : "0"
} ,
"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
} ,
"quality" : "definition" ,
"queue" : {
"pool" : {
"id" : 39 ,
"name" : "DotNet-Build"
} ,
"id" : 36 ,
"name" : "DotNet-Build"
} ,
"path" : "\\" ,
"type" : "build" ,
"id" : 5008 ,
"name" : "DotNet-CoreFx-Trusted-Linux" ,
"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" : 418097459
}
}