|
| 1 | +trigger: none |
| 2 | + |
| 3 | +resources: |
| 4 | + pipelines: |
| 5 | + - pipeline: microsoft_MSBuildLocator |
| 6 | + source: microsoft.MSBuildLocator |
| 7 | + trigger: |
| 8 | + enabled: false |
| 9 | + |
| 10 | +variables: |
| 11 | + SymbolsAgentPath: '$(System.DefaultWorkingDirectory)\_$(Build.DefinitionName)\Symbols' |
| 12 | + SymbolsFeatureName: 'MSBuild' |
| 13 | + SymbolsProject: 'DDE' |
| 14 | + TeamName: 'msbuild' |
| 15 | + VstsDropNames: 'Products/DevDiv/Microsoft/msbuild/$(Build.SourceBranchName)/$(Build.BuildNumber)/$(Build.BuildId)' |
| 16 | + |
| 17 | +stages: |
| 18 | +- stage: RetainBuild |
| 19 | + displayName: 'Retain build' |
| 20 | + jobs: |
| 21 | + - job: RetainBuildJob |
| 22 | + displayName: 'Run on agent' |
| 23 | + pool: |
| 24 | + name: 'VSEngSS-MicroBuild2022-1ES' |
| 25 | + steps: |
| 26 | + - task: MicroBuildArchiveSymbols@6 |
| 27 | + displayName: 'Archive $(SymbolsFeatureName) on Symweb' |
| 28 | + inputs: |
| 29 | + SymbolsFeatureName: '$(SymbolsFeatureName)' |
| 30 | + SymbolsProject: '$(SymbolsProject)' |
| 31 | + SymbolsAgentPath: '$(SymbolsAgentPath)' |
| 32 | + SubmitToInternet: true |
| 33 | + ExpirationInDays: '5475' |
| 34 | + azureSubscription: 'VSEng-SymbolsUpload' |
| 35 | + env: |
| 36 | + SYSTEM_ACCESSTOKEN: $(System.AccessToken) |
| 37 | + |
| 38 | + - task: MicroBuildRetainVstsDrops@1 |
| 39 | + displayName: 'Retain VSTS Drops' |
| 40 | + enabled: false |
| 41 | + inputs: |
| 42 | + DropNames: '$(VstsDropNames)' |
| 43 | + DropServiceUri: 'https://devdiv.artifacts.visualstudio.com/DefaultCollection' |
| 44 | + |
| 45 | +- stage: PublicRelease |
| 46 | + displayName: 'Public release' |
| 47 | + dependsOn: RetainBuild |
| 48 | + condition: succeeded() |
| 49 | + jobs: |
| 50 | + - job: PushToNuGet |
| 51 | + displayName: 'Push to nuget.org' |
| 52 | + pool: |
| 53 | + name: 'VSEngSS-MicroBuild2022-1ES' |
| 54 | + steps: |
| 55 | + - task: NuGetCommand@2 |
| 56 | + displayName: 'NuGet push' |
| 57 | + inputs: |
| 58 | + command: 'push' |
| 59 | + packagesToPush: '$(Pipeline.Workspace)/microsoft_MSBuildLocator/pkg/Microsoft.Build.Locator*.nupkg' |
| 60 | + nuGetFeedType: 'external' |
| 61 | + publishFeedCredentials: 'MSBuild-Locator' |
| 62 | + verbosityPush: 'Detailed' |
| 63 | + |
| 64 | + - job: PublicNuGetRelease |
| 65 | + displayName: 'Public NuGet release' |
| 66 | + dependsOn: PushToNuGet |
| 67 | + pool: server |
| 68 | + steps: |
| 69 | + - task: ManualValidation@0 |
| 70 | + displayName: 'Push packages to NuGet' |
| 71 | + inputs: |
| 72 | + instructions: | |
| 73 | + 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 |
| 74 | + 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 |
| 75 | + onTimeout: 'reject' |
| 76 | + |
| 77 | + - job: GitHubRelease |
| 78 | + displayName: 'GitHub release' |
| 79 | + dependsOn: PublicNuGetRelease |
| 80 | + pool: server |
| 81 | + steps: |
| 82 | + - task: ManualValidation@0 |
| 83 | + displayName: 'Create GitHub release' |
| 84 | + inputs: |
| 85 | + instructions: 'Create the GitHub release manually' |
| 86 | + onTimeout: 'reject' |
0 commit comments