-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathrelease-pipeline.yml
More file actions
92 lines (84 loc) · 3.04 KB
/
release-pipeline.yml
File metadata and controls
92 lines (84 loc) · 3.04 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
trigger: none
resources:
pipelines:
- pipeline: microsoft_MSBuildLocator
source: microsoft.MSBuildLocator
trigger:
enabled: false
variables:
SymbolsFeatureName: 'MSBuild'
SymbolsProject: 'DDE'
TeamName: 'msbuild'
VstsDropNames: 'Products/DevDiv/Microsoft/msbuild/$(Build.SourceBranchName)/$(Build.BuildNumber)/$(Build.BuildId)'
stages:
- stage: RetainBuild
displayName: 'Retain build'
jobs:
- job: RetainBuildJob
displayName: 'Run on agent'
pool:
name: 'VSEngSS-MicroBuild2022-1ES'
steps:
- download: microsoft_MSBuildLocator
displayName: 'Download Symbols Artifact'
artifact: Symbols
- task: MicroBuildArchiveSymbols@6
displayName: 'Archive $(SymbolsFeatureName) on Symweb'
inputs:
SymbolsFeatureName: '$(SymbolsFeatureName)'
SymbolsProject: '$(SymbolsProject)'
SymbolsAgentPath: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/Symbols'
SubmitToInternet: true
ExpirationInDays: '5475'
azureSubscription: 'VSEng-SymbolsUpload'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
- task: MicroBuildRetainVstsDrops@1
displayName: 'Retain VSTS Drops'
enabled: false
inputs:
DropNames: '$(VstsDropNames)'
DropServiceUri: 'https://devdiv.artifacts.visualstudio.com/DefaultCollection'
- stage: PublicRelease
displayName: 'Public release'
dependsOn: RetainBuild
condition: succeeded()
jobs:
- job: PushToNuGet
displayName: 'Push to nuget.org'
pool:
name: 'VSEngSS-MicroBuild2022-1ES'
steps:
- download: microsoft_MSBuildLocator
displayName: 'Download NuGet Package Artifact'
artifact: pkg
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: 'push'
packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'MSBuild-Locator'
verbosityPush: 'Detailed'
- job: PublicNuGetRelease
displayName: 'Public NuGet release'
dependsOn: PushToNuGet
pool: server
steps:
- task: ManualValidation@0
displayName: 'Push packages to NuGet'
inputs:
instructions: |
https://microsoft.sharepoint.com/teams/toolsforeng/_layouts/OneNote.aspx?id=%2Fteams%2Ftoolsforeng%2FOne%20Note%2FToolsForSoftwareEngineers&wd=target%28Build%20Tools%2FMSBuild%2FGitHub.one%7CFF6DC598-65EC-43D5-AB29-DB38FEB82BC8%2FMyGet%20Feed%7CFAFC6258-899D-48D4-8DB4-892396202C9C%2F%29
onenote:https://microsoft.sharepoint.com/teams/toolsforeng/One%20Note/ToolsForSoftwareEngineers/Build%20Tools/MSBuild/GitHub.one#MyGet%20Feed§ion-id={FF6DC598-65EC-43D5-AB29-DB38FEB82BC8}&page-id={FAFC6258-89
onTimeout: 'reject'
- job: GitHubRelease
displayName: 'GitHub release'
dependsOn: PublicNuGetRelease
pool: server
steps:
- task: ManualValidation@0
displayName: 'Create GitHub release'
inputs:
instructions: 'Create the GitHub release manually'
onTimeout: 'reject'