22
22
Prefix : ' na'
23
23
DevOpsPath : ' na'
24
24
InternalVariableGroups : ' '
25
+ InternalServiceConnections : ' '
26
+ GeneratePublicCIPipeline : ' '
25
27
GenerateUnifiedWeekly : ' '
26
28
TestVariableGroups : ' '
29
+ TestServiceConnections : ' '
27
30
28
31
# Standard set of variable groups for the Azure SDK repositories
29
32
AzureSDK_Maven_Release_Pipeline_Secrets : 1
70
73
exit 1
71
74
}
72
75
76
+ $generatePublicCIPipeline = 'true'
77
+ $generateUnifiedWeekly = 'false'
78
+
79
+ $testServiceConnections = '"Azure" "azure-sdk-tests" "azure-sdk-tests-china" "azure-sdk-tests-preview" "azure-sdk-tests-public" "azure-sdk-tests-usgov" "Azure SDK Test Resources - LiveTestSecrets"'
80
+ $internalServiceConnections = '"Azure" "Azure SDK Artifacts" "Azure SDK Engineering System" "opensource-api-connection" "AzureSDKEngKeyVault Secrets"'
81
+
73
82
# Map the language prefix to the appropriate variable groups
74
83
switch ($prefix)
75
84
{
@@ -81,16 +90,19 @@ jobs:
81
90
$internalVariableGroups = '$(AzureSDK_Maven_Release_Pipeline_Secrets) $(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations)'
82
91
}
83
92
"js" {
93
+ $generatePublicCIPipeline = 'false'
84
94
$internalVariableGroups = '$(NPM_Registry_Authentication) $(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations)'
85
95
$testVariableGroups = '$(Secrets_for_Resource_Provisioner)'
86
96
}
87
97
"python" {
98
+ $generatePublicCIPipeline = 'false'
88
99
$internalVariableGroups = '$(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations)'
89
100
$testVariableGroups = '$(Secrets_for_Resource_Provisioner)'
90
101
}
91
102
"net" {
92
103
$internalVariableGroups = '$(AzureSDK_Nuget_Release_Pipeline_Secrets) $(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations)'
93
104
$testVariableGroups = '$(Secrets_for_Resource_Provisioner)'
105
+ $internalServiceConnections += ' "Azure SDK Symbols Publishing" Nuget.org'
94
106
}
95
107
"cpp" {
96
108
$internalVariableGroups = '$(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations) $(Secrets_for_Resource_Provisioner)'
@@ -110,9 +122,16 @@ jobs:
110
122
111
123
Write-Host "InternalVariableGroups = $internalVariableGroups"
112
124
Write-Host "TestVariableGroups = $testVariableGroups"
125
+ Write-Host "TestServiceConnections = $testServiceConnections"
126
+ Write-Host "InternalServiceConnections = $internalServiceConnections"
127
+ Write-Host "GeneratePublicCIPipeline = $generatePublicCIPipeline"
113
128
Write-Host "GenerateUnifiedWeekly = $generateUnifiedWeekly"
129
+
114
130
Write-Host "##vso[task.setvariable variable=InternalVariableGroups]$internalVariableGroups"
115
131
Write-Host "##vso[task.setvariable variable=TestVariableGroups]$testVariableGroups"
132
+ Write-Host "##vso[task.setvariable variable=TestServiceConnections]$testServiceConnections"
133
+ Write-Host "##vso[task.setvariable variable=InternalServiceConnections]$internalServviceConnections"
134
+ Write-host "##vso[task.setvariable variable=GeneratePublicCIPipeline]$generatePublicCIPipeline"
116
135
Write-Host "##vso[task.setvariable variable=GenerateUnifiedWeekly]$generateUnifiedWeekly"
117
136
displayName: Setup pipeline generation variables
118
137
@@ -135,7 +154,9 @@ jobs:
135
154
--branch refs/heads/$(DefaultBranch)
136
155
--set-managed-variables
137
156
--debug
157
+ --serviceconnections "Azure"
138
158
displayName : ' Generate ci pipelines for: ${{ parameters.Repository }}'
159
+ condition : and(succeeded(), eq(variables['GeneratePublicCIPipeline'],'true'))
139
160
continueOnError : true
140
161
- task : AzureCLI@2
141
162
inputs :
@@ -157,6 +178,7 @@ jobs:
157
178
--set-managed-variables
158
179
--debug
159
180
--variablegroups $(InternalVariableGroups) $(TestVariableGroups)
181
+ --serviceconnections $(InternalServiceConnections) $(TestServiceConnections)
160
182
displayName : ' Generate release pipelines for: ${{ parameters.Repository }}'
161
183
continueOnError : true
162
184
- task : AzureCLI@2
@@ -179,6 +201,7 @@ jobs:
179
201
--set-managed-variables
180
202
--debug
181
203
--variablegroups $(TestVariableGroups)
204
+ --serviceconnections $(TestServiceConnections)
182
205
displayName : ' Generate test pipelines for: ${{ parameters.Repository }}'
183
206
condition : and(succeeded(), ne(variables['TestVariableGroups'],''))
184
207
continueOnError : true
@@ -202,6 +225,7 @@ jobs:
202
225
--set-managed-variables
203
226
--debug
204
227
--variablegroups $(TestVariableGroups)
228
+ --serviceconnections $(TestServiceConnections)
205
229
displayName : ' Generate weekly test pipelines (multi-cloud) for: ${{ parameters.Repository }}'
206
230
condition : and(succeeded(), ne(variables['TestVariableGroups'],''))
207
231
continueOnError : true
@@ -225,6 +249,7 @@ jobs:
225
249
--set-managed-variables
226
250
--debug
227
251
--variablegroups $(InternalVariableGroups) $(TestVariableGroups)
252
+ --serviceconnections $(InternalServiceConnections) $(TestServiceConnections)
228
253
displayName : ' Generate weekly unified test pipelines (multi-cloud) for: ${{ parameters.Repository }}'
229
- condition : and(succeeded(), ne (variables['GenerateUnifiedWeekly'],''))
254
+ condition : and(succeeded(), eq (variables['GenerateUnifiedWeekly'],'true '))
230
255
continueOnError : true
0 commit comments