2017-08-21 15:34:15 +00:00
{
"build" : [
2018-08-07 15:19:03 +00:00
{
"environment" : { } ,
"enabled" : true ,
"continueOnError" : true ,
"displayName" : "run begin.ps1" ,
"timeoutInMinutes" : 0 ,
"alwaysRun" : true ,
"task" : {
"id" : "e213ff0f-5d5c-4791-802d-52ea3e7be1f1" ,
"versionSpec" : "2.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"targetType" : "inline" ,
"filePath" : "" ,
"arguments" : "" ,
"script" : "if (Test-Path \"$Env:AgentToolsPath\\begin.ps1\") {\n \"$Env:AgentToolsPath\\begin.ps1 script found. Executing...\"\n & $Env:AgentToolsPath\\begin.ps1\n} else {\n \"$Env:AgentToolsPath\\begin.ps1 script does not exist. Moving on...\"\n}" ,
"errorActionPreference" : "continue" ,
"failOnStderr" : "false" ,
"ignoreLASTEXITCODE" : "true" ,
"workingDirectory" : ""
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Run script $(VS140COMNTOOLS)\\VsDevCmd.bat" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "$(VS140COMNTOOLS)\\VsDevCmd.bat" ,
"arguments" : "" ,
"modifyEnvironment" : "true" ,
"workingFolder" : "" ,
"failOnStandardError" : "false"
}
} ,
2017-08-21 15:34:15 +00:00
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Set up pipeline-specific git repository" ,
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "e213ff0f-5d5c-4791-802d-52ea3e7be1f1" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"scriptType" : "inlineScript" ,
"scriptName" : "" ,
"arguments" : "-gitUrl $(PB_VstsRepoGitUrl) -root $(Pipeline.SourcesDirectory)" ,
"workingFolder" : "" ,
"inlineScript" : "param($gitUrl, $root)\n\nif (Test-Path $root)\n{\n Remove-Item -Recurse -Force $root\n}\ngit clone --no-checkout $gitUrl $root 2>&1 | Write-Host\ncd $root\ngit checkout $env:SourceVersion 2>&1 | Write-Host\n\nWrite-Host (\"##vso[task.setvariable variable=Pipeline.SourcesDirectory;]$root\")" ,
"failOnStandardError" : "true"
}
} ,
{
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2018-08-07 15:19:03 +00:00
"displayName" : "Sync packages" ,
2017-08-21 15:34:15 +00:00
"timeoutInMinutes" : 0 ,
"task" : {
"id" : "e213ff0f-5d5c-4791-802d-52ea3e7be1f1" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"scriptType" : "inlineScript" ,
"scriptName" : "" ,
"arguments" : "$(PB_CloudDropAccountName) $(CloudDropAccessToken) $(PB_Label)" ,
"workingFolder" : "$(Pipeline.SourcesDirectory)" ,
2018-08-07 15:19:03 +00:00
"inlineScript" : "param($account, $token, $container)\n.\\sync.cmd -ab -- /v:D /p:CloudDropAccountName=$account /p:CloudDropAccessToken=$token /p:ContainerName=$container" ,
2017-08-21 15:34:15 +00:00
"failOnStandardError" : "false"
}
} ,
{
2018-08-07 15:19:03 +00:00
"environment" : { } ,
2017-08-21 15:34:15 +00:00
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2018-08-07 15:19:03 +00:00
"displayName" : "symbol packages -> Blob Feed" ,
2017-08-21 15:34:15 +00:00
"timeoutInMinutes" : 0 ,
2018-08-07 15:19:03 +00:00
"condition" : "and(succeeded(), contains(variables.PB_PublishType, 'blob'), eq(variables.PB_ConfigurationGroup, 'Release'))" ,
2017-08-21 15:34:15 +00:00
"task" : {
2018-08-07 15:19:03 +00:00
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
2017-08-21 15:34:15 +00:00
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
2018-08-07 15:19:03 +00:00
"filename" : "msbuild" ,
"arguments" : "src\\publish.proj /t:PublishSymbolsToAzureBlobFeed /p:PublishSymbols=\"true\" $(FeedPublishArguments)" ,
2017-08-21 15:34:15 +00:00
"workingFolder" : "$(Pipeline.SourcesDirectory)" ,
2018-08-07 15:19:03 +00:00
"failOnStandardError" : "false"
}
} ,
{
"environment" : { } ,
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
"displayName" : "Publish symbols to msdl" ,
"timeoutInMinutes" : 0 ,
"condition" : "and(succeeded(), contains(variables.PB_PublishType, 'msdl'), eq(variables.PB_ConfigurationGroup, 'Release'))" ,
"task" : {
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"filename" : "msbuild" ,
"arguments" : "src\\publish.proj /v:D /t:PublishAllSymbols /p:SymbolServerPath=$(PB_MsdlSymbolServerPath) /p:SymbolServerPAT=$(PB_MsdlSymbolServerPAT) /p:SymbolExpirationInDays=$(PB_SymbolExpirationInDays) $(FeedPublishArguments)" ,
"workingFolder" : "$(Pipeline.SourcesDirectory)" ,
"failOnStandardError" : "false"
2017-08-21 15:34:15 +00:00
}
} ,
{
2018-08-07 15:19:03 +00:00
"environment" : { } ,
2017-08-21 15:34:15 +00:00
"enabled" : true ,
"continueOnError" : false ,
"alwaysRun" : false ,
2018-08-07 15:19:03 +00:00
"displayName" : "Publish symbols to symweb" ,
2017-08-21 15:34:15 +00:00
"timeoutInMinutes" : 0 ,
2018-08-07 15:19:03 +00:00
"condition" : "and(succeeded(), contains(variables.PB_PublishType, 'symweb'), eq(variables.PB_ConfigurationGroup, 'Release'))" ,
2017-08-21 15:34:15 +00:00
"task" : {
2018-08-07 15:19:03 +00:00
"id" : "d9bafed4-0b18-4f58-968d-86655b4d2ce9" ,
"versionSpec" : "1.*" ,
2017-08-21 15:34:15 +00:00
"definitionType" : "task"
} ,
"inputs" : {
2018-08-07 15:19:03 +00:00
"filename" : "msbuild" ,
"arguments" : "src\\publish.proj /v:D /t:PublishAllSymbols /p:SymbolServerPath=$(PB_SymwebSymbolServerPath) /p:SymbolServerPAT=$(PB_SymwebSymbolServerPAT) /p:SymbolExpirationInDays=$(PB_SymbolExpirationInDays) $(FeedPublishArguments)" ,
"workingFolder" : "$(Pipeline.SourcesDirectory)" ,
"failOnStandardError" : "false"
}
} ,
{
"environment" : { } ,
"enabled" : true ,
"continueOnError" : true ,
"alwaysRun" : true ,
"displayName" : "run end.ps1" ,
"timeoutInMinutes" : 0 ,
2019-04-12 14:10:50 +00:00
"condition" : "always()" ,
2018-08-07 15:19:03 +00:00
"task" : {
"id" : "e213ff0f-5d5c-4791-802d-52ea3e7be1f1" ,
"versionSpec" : "2.*" ,
"definitionType" : "task"
} ,
"inputs" : {
"targetType" : "inline" ,
"filePath" : "" ,
"arguments" : "" ,
"script" : "if (Test-Path \"$Env:AgentToolsPath\\end.ps1\") {\n \"$Env:AgentToolsPath\\end.ps1 script found. Executing...\"\n & $Env:AgentToolsPath\\end.ps1\n} else {\n \"$Env:AgentToolsPath\\end.ps1 script does not exist. Moving on...\"\n}" ,
"errorActionPreference" : "continue" ,
"failOnStderr" : "false" ,
"ignoreLASTEXITCODE" : "true" ,
"workingDirectory" : ""
2017-08-21 15:34:15 +00:00
}
}
] ,
"options" : [
{
"enabled" : false ,
"definition" : {
"id" : "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
} ,
"inputs" : {
"additionalFields" : "{}"
}
} ,
{
"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_ConfigurationGroup" : {
2018-08-07 15:19:03 +00:00
"value" : "Release" ,
2017-08-21 15:34:15 +00:00
"allowOverride" : true
} ,
"PB_CloudDropAccountName" : {
"value" : "dotnetbuildoutput" ,
"allowOverride" : true
} ,
"CloudDropAccessToken" : {
"value" : null ,
"isSecret" : true
} ,
"PB_Label" : {
"value" : "$(Build.BuildNumber)" ,
"allowOverride" : true
} ,
2018-08-07 15:19:03 +00:00
"PB_BlobNamePrefix" : {
"value" : "$(PB_PipeBuildIdentifier)/" ,
"allowOverride" : true
2017-08-21 15:34:15 +00:00
} ,
"Pipeline.SourcesDirectory" : {
"value" : "$(Build.BinariesDirectory)\\pipelineRepository"
} ,
"PB_VstsAccountName" : {
2018-08-07 15:19:03 +00:00
"value" : "dn-bot"
2017-08-21 15:34:15 +00:00
} ,
"PB_VstsRepositoryName" : {
"value" : "DotNet-CoreFX-Trusted" ,
"allowOverride" : true
} ,
"PB_VstsRepoGitUrl" : {
"value" : "https://$(PB_VstsAccountName):$(VstsRepoPat)@devdiv.visualstudio.com/DevDiv/_git/$(PB_VstsRepositoryName)/"
} ,
"VstsRepoPat" : {
"value" : null ,
"isSecret" : true
} ,
2018-08-07 15:19:03 +00:00
"AzureContainerSymbolPackageDirectory" : {
"value" : "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_ConfigurationGroup)\\symbols" ,
"allowOverride" : true
} ,
"OfficialBuildId" : {
"value" : "$(Build.BuildNumber)" ,
"allowOverride" : true
} ,
2017-08-21 15:34:15 +00:00
"SourceVersion" : {
"value" : "master" ,
"allowOverride" : true
} ,
"SourceBranch" : {
"value" : "master" ,
"allowOverride" : true
} ,
2018-08-07 15:19:03 +00:00
"FeedPublishArguments" : {
"value" : "$(PB_BuildOutputManifestArguments) /p:AccountKey=$(PB_PublishBlobFeedKey) /p:ExpectedFeedUrl=$(PB_PublishBlobFeedUrl) /p:ConfigurationGroup=$(PB_ConfigurationGroup)"
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_PublishBlobFeedUrl" : {
"value" : "" ,
2017-08-21 15:34:15 +00:00
"allowOverride" : true
} ,
2018-08-07 15:19:03 +00:00
"PB_PublishBlobFeedKey" : {
"value" : null ,
"isSecret" : true
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_PublishType" : {
"value" : ""
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_BuildOutputManifestArguments" : {
"value" : "/p:ManifestBuildId=$(OfficialBuildId) /p:ManifestBranch=$(SourceBranch) /p:ManifestCommit=$(SourceVersion)"
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_MsdlSymbolServerPath" : {
"value" : "https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection"
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_MsdlSymbolServerPAT" : {
"value" : null ,
"isSecret" : true
} ,
"PB_SymwebSymbolServerPath" : {
"value" : "https://microsoft.artifacts.visualstudio.com/DefaultCollection"
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_SymwebSymbolServerPAT" : {
"value" : null ,
"isSecret" : true
2017-08-21 15:34:15 +00:00
} ,
2018-08-07 15:19:03 +00:00
"PB_SymbolExpirationInDays" : {
"value" : "30"
2017-08-21 15:34:15 +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" : 180 ,
"jobCancelTimeoutInMinutes" : 5 ,
"repository" : {
"properties" : {
"labelSources" : "0" ,
"reportBuildStatus" : "false" ,
"fetchDepth" : "0" ,
"gitLfsSupport" : "false" ,
"skipSyncSource" : "false" ,
"cleanOptions" : "0" ,
"labelSourcesFormat" : "$(build.buildNumber)"
} ,
"id" : "0a2b2664-c1be-429c-9b40-8a24dee27a4a" ,
"type" : "TfsGit" ,
"name" : "DotNet-BuildPipeline" ,
"url" : "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-BuildPipeline" ,
"defaultBranch" : "refs/heads/master" ,
"clean" : "true" ,
"checkoutSubmodules" : false
} ,
"processParameters" : { } ,
"quality" : "definition" ,
"queue" : {
"id" : 36 ,
"name" : "DotNet-Build" ,
"pool" : {
"id" : 39 ,
"name" : "DotNet-Build"
}
} ,
"id" : -1 ,
"name" : "DotNet-Trusted-Publish-Symbols" ,
"path" : "\\" ,
"type" : "build" ,
"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" : 418097642
}
2018-08-07 15:19:03 +00:00
}