966bba02bb
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
450 lines
15 KiB
JSON
450 lines
15 KiB
JSON
{
|
|
"build": [
|
|
{
|
|
"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"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Fetch custom tooling (NuGet, EmbedIndex)",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "filePath",
|
|
"scriptName": "scripts/DotNet-Trusted-Publish/Fetch-Tools.ps1",
|
|
"arguments": "$(Build.StagingDirectory)\\ToolingDownload",
|
|
"inlineScript": "# You can write your powershell scripts inline here. \n# You can also pass predefined and custom variables to this scripts using arguments\n\n Write-Host \"Hello World\"",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"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)",
|
|
"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\")",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "sync -ab",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "$(PB_CloudDropAccountName) $(CloudDropAccessToken) $(PB_Label)",
|
|
"inlineScript": "param($account, $token, $container)\n.\\sync.cmd -ab -- /p:CloudDropAccountName=$account /p:CloudDropAccessToken=$token /p:ContainerName=$container",
|
|
"workingFolder": "$(Pipeline.SourcesDirectory)",
|
|
"failOnStandardError": "false"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Index symbol packages",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "-ConfigGroup $(PB_ConfigurationGroup) -SymPkgGlob $(PB_AzureContainerSymbolPackageGlob) -PipelineSrcDir $(Pipeline.SourcesDirectory)",
|
|
"inlineScript": "param($ConfigGroup, $SymPkgGlob, $PipelineSrcDir)\nif ($ConfigGroup -ne \"Release\") { exit }\n\n& $env:Build_SourcesDirectory\\scripts\\DotNet-Trusted-Publish\\Embed-Index.ps1 `\n $PipelineSrcDir\\packages\\AzureTransfer\\$ConfigGroup\\$SymPkgGlob `\n $env:Build_StagingDirectory\\IndexedSymbolPackages",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Generate Version Assets",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "-OfficialBuildId $(OfficialBuildId)",
|
|
"inlineScript": "param($OfficialBuildId)\n msbuild build.proj /t:CreateOrUpdateCurrentVersionFile /p:OfficialBuildId=$OfficialBuildId /p:BuildVersionFile=bin\\obj\\BuildVersion-$OfficialBuildId.props",
|
|
"workingFolder": "$(Pipeline.SourcesDirectory)",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "packages -> dotnet.myget.org",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "-ApiKey $(MyGetApiKey) -PipelineSrcDir $(Pipeline.SourcesDirectory) -ConfigurationGroup $(PB_ConfigurationGroup) -AzureContainerPackageGlob $(PB_AzureContainerPackageGlob) -MyGetFeedUrl $(PB_MyGetFeedUrl)",
|
|
"inlineScript": "param($ApiKey, $PipelineSrcDir, $ConfigurationGroup, $AzureContainerPackageGlob, $MyGetFeedUrl)\nif ($ConfigurationGroup -ne \"Release\") { exit }\n& $env:CustomNuGetPath push $PipelineSrcDir\\packages\\AzureTransfer\\$ConfigurationGroup\\$AzureContainerPackageGlob $ApiKey -Source $MyGetFeedUrl -Timeout 3600",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "symbol packages -> dotnet.myget.org",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "-ApiKey $(MyGetApiKey) -ConfigurationGroup $(PB_ConfigurationGroup) -MyGetFeedUrl $(PB_MyGetFeedUrl)",
|
|
"inlineScript": "param($ApiKey, $ConfigurationGroup, $CustomNuGetPath, $MyGetFeedUrl)\nif ($ConfigurationGroup -ne \"Release\") { exit }\n& $env:CustomNuGetPath push $env:Build_StagingDirectory\\IndexedSymbolPackages\\*.nupkg $ApiKey -Source $MyGetFeedUrl -Timeout 3600",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Update versions repository",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "-ghAuthToken $(PB_DotNetBuildBotAccessToken) -root $(Pipeline.SourcesDirectory) -cg $(PB_ConfigurationGroup) -fullPkgGlob $(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_ConfigurationGroup)\\$(PB_AzureContainerPackageGlob)",
|
|
"inlineScript": "param($ghAuthToken, $root, $cg, $fullPkgGlob)\nif ($cg -ne \"Release\") { exit }\ncd $root\n. $root\\build-managed.cmd -- /t:UpdatePublishedVersions `\n/p:GitHubUser=dotnet-helix-bot `\n/p:GitHubEmail=dotnet-helix-bot@microsoft.com `\n/p:GitHubAuthToken=$ghAuthToken `\n/p:VersionsRepoOwner=$env:PB_VersionsRepoOwner `\n/p:VersionsRepo=versions `\n/p:VersionsRepoPath=build-info/dotnet/$env:PB_GitHubRepositoryName/$env:SourceBranch `\n/p:ShippedNuGetPackageGlobPath=$fullPkgGlob",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Get Build Number",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "$(OfficialBuildId) $(Pipeline.SourcesDirectory)",
|
|
"inlineScript": "param(\n [string]$OfficialBuildId,\n [string]$SourcesDir\n)\n$VersionPropsFile=$SourcesDir + \"\\bin\\obj\\BuildVersion-\" + $OfficialBuildId + \".props\"\n[xml]$versionXml=Get-Content $VersionPropsFile\n$env:BuildNumber=$versionXml.Project.PropertyGroup.BuildNumberMajor.InnerText + \".\" + $versionXml.Project.PropertyGroup.BuildNumberMinor.InnerText\nWrite-Host (\"##vso[task.setvariable variable=BuildNumber;]$env:BuildNumber\")",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": true,
|
|
"alwaysRun": false,
|
|
"displayName": "Publish to Artifact Services Drop",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "f9d96d25-0c81-4e77-8282-1ad1f785cbb4",
|
|
"versionSpec": "0.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"dropServiceURI": "https://devdiv.artifacts.visualstudio.com/DefaultCollection",
|
|
"buildNumber": "dotnet/$(PB_GitHubRepositoryName)/$(SourceBranch)/$(BuildNumber)/packages/$(PB_ConfigurationGroup)",
|
|
"sourcePath": "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(PB_ConfigurationGroup)",
|
|
"dropExePath": "",
|
|
"toLowerCase": "true",
|
|
"detailedLog": "false",
|
|
"usePat": "false",
|
|
"retentionDays": "",
|
|
"dropMetadataContainerName": "DropMetadata"
|
|
}
|
|
}
|
|
],
|
|
"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_ConfigurationGroup": {
|
|
"value": "Debug",
|
|
"allowOverride": true
|
|
},
|
|
"TeamName": {
|
|
"value": "DotNetCore"
|
|
},
|
|
"PB_CloudDropAccountName": {
|
|
"value": "dotnetbuildoutput"
|
|
},
|
|
"CloudDropAccessToken": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"OfficialBuildId": {
|
|
"value": "$(Build.BuildNumber)",
|
|
"allowOverride": true
|
|
},
|
|
"PB_Label": {
|
|
"value": "$(Build.BuildNumber)",
|
|
"allowOverride": true
|
|
},
|
|
"PB_MyGetFeedUrl": {
|
|
"value": "https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-dev-eng/nuget/v3/index.json",
|
|
"allowOverride": true
|
|
},
|
|
"MyGetApiKey": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"VstsPat": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"PB_VstsAuthedNuGetConfigPath": {
|
|
"value": "$(Build.StagingDirectory)\\VstsAuthed.NuGet.Config"
|
|
},
|
|
"PB_DotNetBuildBotAccessToken": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"PB_VersionsRepoOwner": {
|
|
"value": "dagood",
|
|
"allowOverride": true
|
|
},
|
|
"PB_BuildConfiguration": {
|
|
"value": "release"
|
|
},
|
|
"PB_BuildPlatform": {
|
|
"value": "any cpu"
|
|
},
|
|
"PB_ReleaseBaseUrl": {
|
|
"value": "https://devdiv.vsrm.visualstudio.com/DefaultCollection"
|
|
},
|
|
"PB_ReleaseProjectName": {
|
|
"value": "DevDiv"
|
|
},
|
|
"PB_ReleaseDefinitionId": {
|
|
"value": "40"
|
|
},
|
|
"PB_ManualReleaseName": {
|
|
"value": ""
|
|
},
|
|
"OfficialBuild": {
|
|
"value": "fake-test"
|
|
},
|
|
"PB_BranchGroup": {
|
|
"value": ""
|
|
},
|
|
"PB_SymbolRoot": {
|
|
"value": "\\\\fake\\symbol\\root"
|
|
},
|
|
"PB_DefinitionNames": {
|
|
"value": "Fake-Windows Fake-Windows-Native"
|
|
},
|
|
"PB_CreateRequestContacts": {
|
|
"value": "a b c"
|
|
},
|
|
"VstsReleaseAccessToken": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"Pipeline.SourcesDirectory": {
|
|
"value": "$(Build.BinariesDirectory)\\pipelineRepository"
|
|
},
|
|
"PB_VstsAccountName": {
|
|
"value": "dagood"
|
|
},
|
|
"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
|
|
},
|
|
"SourceVersion": {
|
|
"value": "master",
|
|
"allowOverride": true
|
|
},
|
|
"SourceBranch": {
|
|
"value": "master",
|
|
"allowOverride": true
|
|
},
|
|
"PB_AzureContainerPackageGlob": {
|
|
"value": "*.nupkg",
|
|
"allowOverride": true
|
|
},
|
|
"PB_AzureContainerSymbolPackageGlob": {
|
|
"value": "symbols\\*.nupkg",
|
|
"allowOverride": true
|
|
},
|
|
"PB_GitHubRepositoryName": {
|
|
"value": "corefx",
|
|
"allowOverride": true
|
|
},
|
|
"PB_UseLegacyBuildScripts": {
|
|
"value": "false",
|
|
"allowOverride": true
|
|
},
|
|
"PB_ToolPackageSource": {
|
|
"value": "https://www.myget.org/F/dagood-test-buildtools/api/v3/index.json"
|
|
}
|
|
},
|
|
"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,
|
|
"repository": {
|
|
"properties": {
|
|
"labelSources": "0",
|
|
"reportBuildStatus": "false",
|
|
"fetchDepth": "0",
|
|
"gitLfsSupport": "false",
|
|
"skipSyncSource": "false",
|
|
"cleanOptions": "0"
|
|
},
|
|
"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
|
|
},
|
|
"quality": "definition",
|
|
"queue": {
|
|
"pool": {
|
|
"id": 39,
|
|
"name": "DotNet-Build"
|
|
},
|
|
"id": 36,
|
|
"name": "DotNet-Build"
|
|
},
|
|
"path": "\\",
|
|
"type": "build",
|
|
"id": 2943,
|
|
"name": "DotNet-Trusted-Publish",
|
|
"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
|
|
}
|
|
}
|