Skip to content

Commit c427f6f

Browse files
authored
DebuggerTesting-Release updates (#1543)
Use Test Sign for Testing packages
1 parent 454c3e2 commit c427f6f

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

eng/pipelines/DebuggerTesting-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ extends:
3333
mb:
3434
signing:
3535
enabled: true
36-
signType: real
37-
signWithProd: true
36+
signType: test
3837
zipSources: false
3938
localization:
4039
enabled: true

eng/pipelines/templates/DebuggerTesting-release.template.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,22 @@ steps:
3434
- template: ../tasks/1ES/PublishPipelineArtifact.yml
3535
parameters:
3636
displayName: 'Publish Nupkgs'
37-
path: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop'
37+
targetPath: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop'
3838
artifactName: 'nupkgs'
3939
OneESPT: true
4040

41+
- task: 1ES.PublishNuget@1
42+
displayName: 'NuGet push'
43+
inputs:
44+
packageParentPath: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop\'
45+
packagesToPush: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop\*.nupkg'
46+
publishVstsFeed: 'cf33e8db-bbb9-4205-82ee-e1cd159cce99'
47+
4148
# Retain the pipeline run for 2 years so we can compare future builds against it
4249
- powershell: |
4350
$contentType = 'application/json';
4451
$headers = @{ Authorization = 'Bearer $(System.AccessToken)' };
45-
$rawRequest = @{ daysValid = 365 * 2; definitionId = $(resources.pipeline.CI.pipelineID); ownerId = 'User:$(Build.RequestedForId)'; protectPipeline = $false; runId = $(resources.pipeline.CI.runId) };
52+
$rawRequest = @{ daysValid = 365 * 2; definitionId = $(System.DefinitionId); ownerId = 'User:$(Build.RequestedForId)'; protectPipeline = $false; runId = $(Build.BuildId) };
4653
$request = ConvertTo-Json @($rawRequest);
4754
Write-Host $request
4855
$uri = "$(System.CollectionUri)$(System.TeamProject)/_apis/build/retention/leases?api-version=6.0-preview.1";

0 commit comments

Comments
 (0)