From ff84ac35b7b0a787e9651612620facd066151280 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Thu, 29 Jan 2026 17:56:47 -0800 Subject: [PATCH] Use Test Sign for Testing packages --- eng/pipelines/DebuggerTesting-release.yml | 3 +-- .../templates/DebuggerTesting-release.template.yml | 11 +++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/DebuggerTesting-release.yml b/eng/pipelines/DebuggerTesting-release.yml index cf1b61cea..d977b5280 100644 --- a/eng/pipelines/DebuggerTesting-release.yml +++ b/eng/pipelines/DebuggerTesting-release.yml @@ -33,8 +33,7 @@ extends: mb: signing: enabled: true - signType: real - signWithProd: true + signType: test zipSources: false localization: enabled: true diff --git a/eng/pipelines/templates/DebuggerTesting-release.template.yml b/eng/pipelines/templates/DebuggerTesting-release.template.yml index be7e750c8..19923018f 100644 --- a/eng/pipelines/templates/DebuggerTesting-release.template.yml +++ b/eng/pipelines/templates/DebuggerTesting-release.template.yml @@ -34,15 +34,22 @@ steps: - template: ../tasks/1ES/PublishPipelineArtifact.yml parameters: displayName: 'Publish Nupkgs' - path: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop' + targetPath: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop' artifactName: 'nupkgs' OneESPT: true +- task: 1ES.PublishNuget@1 + displayName: 'NuGet push' + inputs: + packageParentPath: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop\' + packagesToPush: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop\*.nupkg' + publishVstsFeed: 'cf33e8db-bbb9-4205-82ee-e1cd159cce99' + # Retain the pipeline run for 2 years so we can compare future builds against it - powershell: | $contentType = 'application/json'; $headers = @{ Authorization = 'Bearer $(System.AccessToken)' }; - $rawRequest = @{ daysValid = 365 * 2; definitionId = $(resources.pipeline.CI.pipelineID); ownerId = 'User:$(Build.RequestedForId)'; protectPipeline = $false; runId = $(resources.pipeline.CI.runId) }; + $rawRequest = @{ daysValid = 365 * 2; definitionId = $(System.DefinitionId); ownerId = 'User:$(Build.RequestedForId)'; protectPipeline = $false; runId = $(Build.BuildId) }; $request = ConvertTo-Json @($rawRequest); Write-Host $request $uri = "$(System.CollectionUri)$(System.TeamProject)/_apis/build/retention/leases?api-version=6.0-preview.1";