Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 36 additions & 7 deletions eng/pipelines/DebuggerTesting-release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,43 @@
---
name: $(Date:yyyMMdd).$(Rev:r)

variables:
- name: SignType
value: test
- name: TeamName
value: MDDDebugger
jobs:
- template: ./jobs/VSEngSS-MicroBuild2022-1ES.job.yml

resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release

extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
DisplayName: DebuggerTesting
JobTemplate:
- template: ../templates/DebuggerTesting-release.template.yml
pool:
name: VSEngSS-MicroBuild2022-1ES
os: windows
sdl:
sourceAnalysisPool:
name: VSEngSS-MicroBuild2022-1ES
os: windows
stages:
- stage: DebuggerTesting
jobs:
- job:
displayName: Windows
timeoutInMinutes: 180
cancelTimeoutInMinutes: 1
templateContext:
mb:
signing:
enabled: true
signType: real
signWithProd: true
zipSources: false
localization:
enabled: true
steps:
- template: /eng/pipelines/templates/DebuggerTesting-release.template.yml@self
...
19 changes: 15 additions & 4 deletions eng/pipelines/templates/DebuggerTesting-release.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ steps:

- template: ../tasks/NuGetToolInstaller.yml

- template: ../tasks/MicroBuildSigningPlugin.yml

- template: ../tasks/NuGetCommand.yml
parameters:
Command: 'restore'
Expand All @@ -21,7 +19,7 @@ steps:
configuration: 'Release'
msbuildArguments: /p:NuGetPath=$(NuGetExeToolPath) /p:NuGetPrerelease=false
env: {
"SIGN_TYPE": "$(SignType)"
"SIGN_TYPE": "real"
}

- template: ../tasks/SignVerify.yml
Expand All @@ -31,12 +29,25 @@ steps:
- template: ../steps/CopyAndPublishSymbols.yml
parameters:
SourceFolder: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop'
OneESPT: true

- template: ../tasks/PublishPipelineArtifact.yml
- template: ../tasks/1ES/PublishPipelineArtifact.yml
parameters:
displayName: 'Publish Nupkgs'
path: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop'
artifactName: 'nupkgs'
OneESPT: true

# 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) };
$request = ConvertTo-Json @($rawRequest);
Write-Host $request
$uri = "$(System.CollectionUri)$(System.TeamProject)/_apis/build/retention/leases?api-version=6.0-preview.1";
Invoke-RestMethod -uri $uri -method POST -Headers $headers -ContentType $contentType -Body $request;
displayName: Retain build

- template: ../tasks/MicroBuildCleanup.yml
...
Loading