Skip to content

Commit 8187924

Browse files
committed
add more yml templates
1 parent eaaff3a commit 8187924

File tree

5 files changed

+193
-0
lines changed

5 files changed

+193
-0
lines changed
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
variables:
2+
- group: AzureDevOps-Artifact-Feeds-Pats
3+
- group: DotNet-Blob-Feed
4+
- group: DotNet-DotNetCli-Storage
5+
- group: DotNet-MSRC-Storage
6+
- group: Publish-Build-Assets
7+
8+
# .NET Core 3.1 Dev
9+
- name: PublicDevRelease_31_Channel_Id
10+
value: 128
11+
12+
# .NET Core 5 Dev
13+
- name: NetCore_5_Dev_Channel_Id
14+
value: 131
15+
16+
# .NET Eng - Validation
17+
- name: Net_Eng_Validation_Channel_Id
18+
value: 9
19+
20+
# .NET Eng - Latest
21+
- name: Net_Eng_Latest_Channel_Id
22+
value: 2
23+
24+
# .NET 3 Eng - Validation
25+
- name: NET_3_Eng_Validation_Channel_Id
26+
value: 390
27+
28+
# .NET 3 Eng
29+
- name: NetCore_3_Tools_Channel_Id
30+
value: 344
31+
32+
# .NET Core 3.0 Internal Servicing
33+
- name: InternalServicing_30_Channel_Id
34+
value: 184
35+
36+
# .NET Core 3.0 Release
37+
- name: PublicRelease_30_Channel_Id
38+
value: 19
39+
40+
# .NET Core 3.1 Release
41+
- name: PublicRelease_31_Channel_Id
42+
value: 129
43+
44+
# General Testing
45+
- name: GeneralTesting_Channel_Id
46+
value: 529
47+
48+
# .NET Core 3.1 Blazor Features
49+
- name: NetCore_31_Blazor_Features_Channel_Id
50+
value: 531
51+
52+
# .NET Core Experimental
53+
- name: NetCore_Experimental_Channel_Id
54+
value: 562
55+
56+
# Whether the build is internal or not
57+
- name: IsInternalBuild
58+
value: ${{ and(ne(variables['System.TeamProject'], 'public'), contains(variables['Build.SourceBranch'], 'internal')) }}
59+
60+
# Default Maestro++ API Endpoint and API Version
61+
- name: MaestroApiEndPoint
62+
value: "https://maestro-prod.westus2.cloudapp.azure.com"
63+
- name: MaestroApiAccessToken
64+
value: $(MaestroAccessToken)
65+
- name: MaestroApiVersion
66+
value: "2019-01-16"
67+
68+
- name: SourceLinkCLIVersion
69+
value: 3.0.0
70+
- name: SymbolToolVersion
71+
value: 1.0.1
72+
73+
# Feed Configurations
74+
# These should include the suffix "/index.json"
75+
76+
# Default locations for Installers and checksums
77+
# Public Locations
78+
- name: ChecksumsBlobFeedUrl
79+
value: https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
80+
- name: InstallersBlobFeedUrl
81+
value: https://dotnetcli.blob.core.windows.net/dotnet/index.json
82+
83+
# Private Locations
84+
- name: InternalChecksumsBlobFeedUrl
85+
value: https://dotnetclichecksumsmsrc.blob.core.windows.net/dotnet/index.json
86+
- name: InternalChecksumsBlobFeedKey
87+
value: $(dotnetclichecksumsmsrc-storage-key)
88+
89+
- name: InternalInstallersBlobFeedUrl
90+
value: https://dotnetclimsrc.blob.core.windows.net/dotnet/index.json
91+
- name: InternalInstallersBlobFeedKey
92+
value: $(dotnetclimsrc-access-key)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
parameters:
2+
ChannelId: 0
3+
4+
jobs:
5+
- job: gatherDrop
6+
displayName: Gather Drop
7+
dependsOn: setupMaestroVars
8+
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.ChannelId }}))
9+
variables:
10+
- name: BARBuildId
11+
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
12+
pool:
13+
vmImage: 'windows-2019'
14+
steps:
15+
- task: PowerShell@2
16+
displayName: Darc gather-drop
17+
inputs:
18+
filePath: $(Build.SourcesDirectory)/eng/common/post-build/darc-gather-drop.ps1
19+
arguments: -BarBuildId $(BARBuildId)
20+
-DropLocation $(Agent.BuildDirectory)/Temp/Drop/
21+
-MaestroApiAccessToken $(MaestroApiAccessToken)
22+
-MaestroApiEndPoint $(MaestroApiEndPoint)
23+
-MaestroApiVersion $(MaestroApiVersion)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
parameters:
2+
ChannelId: 0
3+
4+
jobs:
5+
- job:
6+
displayName: Promote Build
7+
dependsOn: setupMaestroVars
8+
condition: contains(dependencies.setupMaestroVars.outputs['setReleaseVars.InitialChannels'], format('[{0}]', ${{ parameters.ChannelId }}))
9+
variables:
10+
- name: BARBuildId
11+
value: $[ dependencies.setupMaestroVars.outputs['setReleaseVars.BARBuildId'] ]
12+
- name: ChannelId
13+
value: ${{ parameters.ChannelId }}
14+
pool:
15+
vmImage: 'windows-2019'
16+
steps:
17+
- task: PowerShell@2
18+
displayName: Add Build to Channel
19+
inputs:
20+
filePath: $(Build.SourcesDirectory)/eng/common/post-build/promote-build.ps1
21+
arguments: -BuildId $(BARBuildId)
22+
-ChannelId $(ChannelId)
23+
-MaestroApiAccessToken $(MaestroApiAccessToken)
24+
-MaestroApiEndPoint $(MaestroApiEndPoint)
25+
-MaestroApiVersion $(MaestroApiVersion)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
jobs:
2+
- job: setupMaestroVars
3+
displayName: Setup Maestro Vars
4+
pool:
5+
vmImage: 'windows-2019'
6+
steps:
7+
- checkout: none
8+
9+
- task: DownloadBuildArtifacts@0
10+
displayName: Download Release Configs
11+
inputs:
12+
buildType: current
13+
artifactName: ReleaseConfigs
14+
15+
- task: PowerShell@2
16+
name: setReleaseVars
17+
displayName: Set Release Configs Vars
18+
inputs:
19+
targetType: inline
20+
script: |
21+
try {
22+
$Content = Get-Content $(Build.StagingDirectory)/ReleaseConfigs/ReleaseConfigs.txt
23+
24+
$BarId = $Content | Select -Index 0
25+
26+
$Channels = ""
27+
$Content | Select -Index 1 | ForEach-Object { $Channels += "$_ ," }
28+
29+
$IsStableBuild = $Content | Select -Index 2
30+
31+
Write-Host "##vso[task.setvariable variable=BARBuildId;isOutput=true]$BarId"
32+
Write-Host "##vso[task.setvariable variable=InitialChannels;isOutput=true]$Channels"
33+
Write-Host "##vso[task.setvariable variable=IsStableBuild;isOutput=true]$IsStableBuild"
34+
}
35+
catch {
36+
Write-Host $_
37+
Write-Host $_.Exception
38+
Write-Host $_.ScriptStackTrace
39+
exit 1
40+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
ChannelId: 0
3+
4+
steps:
5+
- task: PowerShell@2
6+
displayName: Triggering subscriptions
7+
inputs:
8+
filePath: $(Build.SourcesDirectory)/eng/common/post-build/trigger-subscriptions.ps1
9+
arguments: -SourceRepo $(Build.Repository.Uri)
10+
-ChannelId ${{ parameters.ChannelId }}
11+
-MaestroApiAccessToken $(MaestroAccessToken)
12+
-MaestroApiEndPoint $(MaestroApiEndPoint)
13+
-MaestroApiVersion $(MaestroApiVersion)

0 commit comments

Comments
 (0)