-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathDebuggerTesting-release.template.yml
More file actions
53 lines (44 loc) · 1.89 KB
/
DebuggerTesting-release.template.yml
File metadata and controls
53 lines (44 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
steps:
- checkout: self
- template: ../tasks/UseDotNet.yml
- template: ../tasks/NuGetToolInstaller.yml
- template: ../tasks/NuGetCommand.yml
parameters:
Command: 'restore'
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
FeedsToUse: 'config'
NugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- template: ../tasks/MSBuild.yml
parameters:
solution: '$(Build.SourcesDirectory)\test\CppTests\CppTests.csproj'
configuration: 'Release'
msbuildArguments: /p:NuGetPath=$(NuGetExeToolPath) /p:NuGetPrerelease=false
env: {
"SIGN_TYPE": "real"
}
- template: ../tasks/SignVerify.yml
parameters:
TargetFolders: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop'
- template: ../steps/CopyAndPublishSymbols.yml
parameters:
SourceFolder: '$(Build.SourcesDirectory)\bin\DebugAdapterProtocolTests\Release\drop'
OneESPT: true
- 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
...