{ "build": [ { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": false, "displayName": "Run AgentTools/Begin.ps1", "timeoutInMinutes": 0, "condition": "succeededOrFailed()", "task": { "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", "versionSpec": "2.*", "definitionType": "task" }, "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.ps1\") {\n \"Begin.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.ps1\n} else {\n \"Begin.ps1 script does not exist. Moving on...\"\n}", "errorActionPreference": "continue", "failOnStderr": "false", "ignoreLASTEXITCODE": "true", "workingDirectory": "" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Install Signing Plugin", "timeoutInMinutes": 0, "condition": "and(succeeded(), in(variables.PB_SignType, 'real', 'test'))", "task": { "id": "30666190-6959-11e5-9f96-f56098202fef", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "signType": "real", "zipSources": "true", "version": "", "feedSource": "https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json", "legacySigning": "$(PB_UseLegacySigning)" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Fetch custom tooling (NuGet)", "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", "workingFolder": "", "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\"", "failOnStandardError": "true" } }, { "environment": {}, "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 $(VstsRepoGitUrl) -root $(Pipeline.SourcesDirectory)", "workingFolder": "", "inlineScript": "param($gitUrl, $root)\n\nif (Test-Path $root)\n{\n Remove-Item -Recurse -Force $root\n}\ngit clone $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" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Setup vs dev env", "timeoutInMinutes": 0, "task": { "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "filename": "$(Pipeline.SourcesDirectory)\\setup_vs_tools.cmd", "arguments": "", "modifyEnvironment": "true", "workingFolder": "", "failOnStandardError": "false" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Sync packages", "timeoutInMinutes": 0, "task": { "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "filename": "sync.cmd", "arguments": "-ab -AzureAccount=$(CloudDropAccountName) -AzureToken=$(CloudDropAccessToken) -Container=$(PB_ContainerName) -BlobNamePrefix=$(PB_BlobNamePrefix)$(ConfigurationGroup)/pkg/flatcontainer/ -- /p:DownloadFlatFiles=true /p:BlobNameExtension=\".nupkg\" /p:DownloadDirectory=$(AzureContainerPackageDirectory)pkg", "workingFolder": "$(Pipeline.SourcesDirectory)", "failOnStandardError": "false" } }, { "environment": {}, "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": "", "workingFolder": "$(Pipeline.SourcesDirectory)", "inlineScript": "#if ($env:UseLegacyBuildScripts -eq \"true\")\n#{\n msbuild build.proj /t:CreateOrUpdateCurrentVersionFile /p:OfficialBuildId=$env:OfficialBuildId /p:BuildVersionFile=bin\\obj\\BuildVersion-$env:OfficialBuildId.props\n#}\n#else\n#{\n# .\\build-managed.cmd -GenerateVersion \"-OfficialBuildId=$env:OfficialBuildId\"\n#}", "failOnStandardError": "true" } }, { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": false, "displayName": "Log Native Version Assets Files", "timeoutInMinutes": 0, "task": { "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "filename": "dir", "arguments": "$(Pipeline.SourcesDirectory)\\bin\\obj\\BuildVersion*", "workingFolder": "", "failOnStandardError": "false" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "packages -> dotnet.myget.org", "timeoutInMinutes": 0, "condition": "and(succeeded(), contains(variables.PB_PublishType, 'myget'), eq(variables.ConfigurationGroup, 'Release'))", "task": { "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "scriptType": "inlineScript", "scriptName": "", "arguments": "-ApiKey $(MyGetApiKey) -ConfigurationGroup $(ConfigurationGroup) -PackagesGlob $(AzureContainerPackageDirectory)$(AzureContainerPackageGlob) -MyGetFeedUrl $(MyGetFeedUrl)", "workingFolder": "$(Pipeline.SourcesDirectory)", "inlineScript": "param($ApiKey, $ConfigurationGroup, $PackagesGlob, $MyGetFeedUrl)\n\nif ($ConfigurationGroup.ToLower() -ne \"release\") { Write-host \"Chose not to publish\"; exit }\n\nmsbuild /t:NuGetPush /v:Normal `\n/p:NuGetExePath=$env:CustomNuGetPath `\n/p:NuGetApiKey=$ApiKey `\n/p:NuGetSource=$MyGetFeedUrl `\n/p:PackagesGlob=$PackagesGlob", "failOnStandardError": "true" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Packages -> Blob Feed", "timeoutInMinutes": 0, "condition": "and(succeeded(), contains(variables.PB_PublishType, 'blob'), eq(variables.ConfigurationGroup, 'Release'))", "task": { "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "filename": "msbuild", "arguments": "src\\publish.proj /t:PublishPackages /p:__PublishPackages=true $(FeedPublishArguments) /fileloggerparameters:Verbosity=diag;LogFile=publishpkg.log", "workingFolder": "$(Pipeline.SourcesDirectory)", "failOnStandardError": "false" } }, { "environment": {}, "enabled": false, "continueOnError": false, "alwaysRun": false, "displayName": "Create VSTS auth NuGet.Config", "timeoutInMinutes": 0, "task": { "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "scriptType": "inlineScript", "scriptName": "", "arguments": "$(VstsAuthedNuGetConfigPath) $(VstsFeedUrl) $(VstsPat)", "workingFolder": "", "inlineScript": "param($path, $url, $pat)\n\nSet-Content $path @\"\n\n\n \n \n \n \n \n \n \n \n \n\n\"@", "failOnStandardError": "true" } }, { "environment": {}, "enabled": false, "continueOnError": false, "alwaysRun": false, "displayName": "packages -> VSTS", "timeoutInMinutes": 0, "task": { "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "scriptType": "inlineScript", "scriptName": "", "arguments": "", "workingFolder": "", "inlineScript": "if ($env:ConfigurationGroup -ne \"Release\") { exit }\n& $env:CustomNuGetPath push $env:AzureContainerPackageDirectory$env:AzureContainerPackageGlob placeholderapikey -Source vsts-dotnet-core -ConfigFile $env:VstsAuthedNuGetConfigPath -Timeout 3600", "failOnStandardError": "true" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Update versions repository", "timeoutInMinutes": 0, "condition": "and(succeeded(), contains(variables.PB_PublishType, 'versions'), eq(variables.ConfigurationGroup, 'Release'))", "task": { "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "scriptType": "inlineScript", "scriptName": "", "arguments": "-gitHubAuthToken $(UpdatePublishedVersions.AuthToken) -root $(Pipeline.SourcesDirectory) -configGroup $(ConfigurationGroup)", "workingFolder": "", "inlineScript": "param($gitHubAuthToken, $root, $configGroup)\nif ($configGroup -ne \"Release\" ) { exit }\ncd $root\n. $root\\UpdatePublishedVersions.ps1 `\n -gitHubUser dotnet-build-bot -gitHubEmail dotnet-build-bot@microsoft.com `\n -gitHubAuthToken $gitHubAuthToken `\n -versionsRepoOwner $env:VersionsRepoOwner -versionsRepo versions `\n -versionsRepoPath build-info/dotnet/$env:GitHubRepositoryName/$env:SourceBranch `\n -nupkgPath $env:AzureContainerPackageDirectory$env:AzureContainerPackageGlob", "failOnStandardError": "true" } }, { "environment": {}, "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)", "workingFolder": "", "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\")", "failOnStandardError": "true" } }, { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": false, "displayName": "Publish to Artifact Services Drop (OfficialBuildId)", "timeoutInMinutes": 0, "task": { "id": "f9d96d25-0c81-4e77-8282-1ad1f785cbb4", "versionSpec": "0.*", "definitionType": "task" }, "inputs": { "dropServiceURI": "https://devdiv.artifacts.visualstudio.com/DefaultCollection", "buildNumber": "dotnet/$(GitHubRepositoryName)/$(SourceBranch)/$(OfficialBuildId)/packages/$(ConfigurationGroup)", "sourcePath": "$(AzureContainerPackageDirectory)", "dropExePath": "", "toLowerCase": "true", "detailedLog": "false", "usePat": "false", "retentionDays": "", "dropMetadataContainerName": "Drop-OfficialBuildId" } }, { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": false, "displayName": "Publish to Artifact Services Drop (BuildNumber)", "timeoutInMinutes": 0, "task": { "id": "f9d96d25-0c81-4e77-8282-1ad1f785cbb4", "versionSpec": "0.*", "definitionType": "task" }, "inputs": { "dropServiceURI": "https://devdiv.artifacts.visualstudio.com/DefaultCollection", "buildNumber": "dotnet/$(GitHubRepositoryName)/$(SourceBranch)/$(BuildNumber)/packages/$(ConfigurationGroup)", "sourcePath": "$(AzureContainerPackageDirectory)", "dropExePath": "", "toLowerCase": "true", "detailedLog": "false", "usePat": "false", "retentionDays": "", "dropMetadataContainerName": "Drop-BuildNumber" } }, { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": true, "displayName": "Copy Files to: $(Build.StagingDirectory)\\DebugLogs", "timeoutInMinutes": 0, "condition": "succeededOrFailed()", "task": { "id": "5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c", "versionSpec": "2.*", "definitionType": "task" }, "inputs": { "SourceFolder": "$(Pipeline.SourcesDirectory)", "Contents": "**/*.log", "TargetFolder": "$(Build.StagingDirectory)\\DebugLogs", "CleanTargetFolder": "false", "OverWrite": "false", "flattenFolders": "false" } }, { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": true, "displayName": "Publish Artifact: DebugLogs", "timeoutInMinutes": 0, "condition": "succeededOrFailed()", "task": { "id": "2ff763a7-ce83-4e1f-bc89-0ae63477cebe", "versionSpec": "1.*", "definitionType": "task" }, "inputs": { "PathtoPublish": "$(Build.StagingDirectory)\\DebugLogs", "ArtifactName": "DebugLogs", "ArtifactType": "Container", "TargetPath": "\\\\my\\share\\$(Build.DefinitionName)\\$(Build.BuildNumber)", "Parallel": "false", "ParallelCount": "8" } }, { "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Send Telemetry", "timeoutInMinutes": 0, "condition": "always()", "task": { "id": "521a94ea-9e68-468a-8167-6dcf361ea776", "versionSpec": "1.*", "definitionType": "task" }, "inputs": {} }, { "environment": {}, "enabled": true, "continueOnError": true, "alwaysRun": true, "displayName": "Run AgentTools/End.ps1", "timeoutInMinutes": 0, "condition": "succeededOrFailed()", "task": { "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", "versionSpec": "2.*", "definitionType": "task" }, "inputs": { "targetType": "inline", "filePath": "", "arguments": "", "script": "if (Test-Path \"$(AgentToolsPath)\\End.ps1\") {\n \"End.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.ps1\n} else {\n \"End.ps1 script does not exist. Moving on...\"\n}", "errorActionPreference": "continue", "failOnStderr": "false", "ignoreLASTEXITCODE": "true", "workingDirectory": "" } } ], "options": [ { "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": "{}" } }, { "enabled": false, "definition": { "id": "5d58cc01-7c75-450c-be18-a388ddb129ec" }, "inputs": { "branchFilters": "[\"+refs/heads/*\"]", "additionalFields": "{}" } } ], "variables": { "system.debug": { "value": "false", "allowOverride": true }, "ConfigurationGroup": { "value": "$(PB_BuildType)", "allowOverride": true }, "CloudDropAccountName": { "value": "dotnetbuildoutput", "allowOverride": true }, "CloudDropAccessToken": { "value": null, "allowOverride": true, "isSecret": true }, "PB_ContainerName": { "value": "$(Build.BuildNumber)", "allowOverride": true }, "PB_BlobNamePrefix": { "value": "$(PB_PipeBuildIdentifier)/", "allowOverride": true }, "TeamName": { "value": "DotNetCore" }, "AzureBlobFeedAccountName": { "value": "dotnetfeed", "allowOverride": true }, "AzureBlobFeedAccessToken": { "value": null, "allowOverride": true, "isSecret": true }, "AzureBlobFeedContainerName": { "value": "dotnet-core", "allowOverride": true }, "OfficialBuildId": { "value": "$(Build.BuildNumber)", "allowOverride": true }, "MyGetFeedUrl": { "value": "https://dotnet.myget.org/F/dotnet-core-test/api/v2/package", "allowOverride": true }, "MyGetApiKey": { "value": null, "allowOverride": true, "isSecret": true }, "VstsFeedUrl": { "value": "https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/dotnet-core-test/nuget/v3/index.json", "allowOverride": true }, "VstsPat": { "value": null, "allowOverride": true, "isSecret": true }, "VstsAuthedNuGetConfigPath": { "value": "$(Build.StagingDirectory)\\VstsAuthed.NuGet.Config" }, "UpdatePublishedVersions.AuthToken": { "value": null, "allowOverride": true, "isSecret": true }, "VersionsRepoOwner": { "value": "dagood", "allowOverride": true }, "BuildConfiguration": { "value": "Release" }, "BuildPlatform": { "value": "any cpu" }, "ReleaseBaseUrl": { "value": "https://devdiv.vsrm.visualstudio.com/DefaultCollection", "allowOverride": true }, "ReleaseProjectName": { "value": "DevDiv", "allowOverride": true }, "ReleaseDefinitionId": { "value": "40", "allowOverride": true }, "ManualReleaseName": { "value": "" }, "OfficialBuild": { "value": "fake-test" }, "BranchGroup": { "value": "" }, "DefinitionNames": { "value": "Fake-Windows Fake-Windows-Native" }, "CreateRequestContacts": { "value": "a b c" }, "VstsReleaseAccessToken": { "value": null, "allowOverride": true, "isSecret": true }, "Pipeline.SourcesDirectory": { "value": "$(Build.BinariesDirectory)\\pipelineRepository" }, "VstsAccountName": { "value": "dagood", "allowOverride": true }, "VstsRepositoryName": { "value": "DotNet-CoreFX-Trusted", "allowOverride": true }, "VstsRepoGitUrl": { "value": "https://$(VstsAccountName):$(VstsRepoPat)@devdiv.visualstudio.com/DevDiv/_git/$(VstsRepositoryName)/" }, "VstsRepoPat": { "value": null, "allowOverride": true, "isSecret": true }, "SourceVersion": { "value": "master", "allowOverride": true }, "SourceBranch": { "value": "master", "allowOverride": true }, "AzureContainerPackageDirectory": { "value": "$(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(ConfigurationGroup)\\", "allowOverride": true }, "AzureContainerPackageGlob": { "value": "pkg\\*.nupkg", }, "GitHubRepositoryName": { "value": "corefx", "allowOverride": true }, "UseLegacyBuildScripts": { "value": "false", "allowOverride": true }, "FeedPublishArguments": { "value": "$(PB_BuildOutputManifestArguments) /p:ExpectedFeedUrl=$(PB_PublishBlobFeedUrl) /p:CloudDropAccessToken=$(PB_PublishBlobFeedKey) /p:CloudDropAccountName=$(AzureBlobFeedAccountName) /p:ContainerName=$(AzureBlobFeedContainerName) /p:OverwriteOnPublish=true /p:PackagesPatternDir=$(AzureContainerPackageDirectory) /p:__BuildType=$(ConfigurationGroup) /p:OfficialPublish=true /p:PublishFlatContainer=false", }, "PB_PublishType": { "value": "", "allowOverride": true }, "PB_PublishBlobFeedUrl": { "value": "", "allowOverride": true }, "PB_PublishBlobFeedKey": { "value": "", "allowOverride": true }, "PB_BuildOutputManifestArguments": { "value": "/p:ManifestBuildId=$(OfficialBuildId) /p:ManifestBranch=$(SourceBranch) /p:ManifestCommit=$(SourceVersion)" }, "PB_UseLegacySigning": { "value": "false", "allowOverride": true } }, "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", "checkoutNestedSubmodules": "false", "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", "drafts": [], "queue": { "_links": { "self": { "href": "https://devdiv.visualstudio.com/DefaultCollection/_apis/build/Queues/330" } }, "id": 330, "name": "DotNetCore-Build", "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/build/Queues/330", "pool": { "id": 97, "name": "DotNetCore-Build" } }, "id": 2943, "name": "DotNet-Trusted-Publish", "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" } }