1+ parameters :
2+ - name : Artifacts
3+ type : object
4+ default : []
5+ - name : TestPipeline
6+ type : boolean
7+ default : false
8+ - name : ArtifactName
9+ type : string
10+ default : packages
11+ - name : ServiceDirectory
12+ type : string
13+ default : not-specified
14+ - name : ServiceToTest
15+ type : string
16+ default : ' '
17+ - name : TestSetupSteps
18+ type : stepList
19+ default : []
20+ - name : WindowsPool
21+ type : string
22+ default : azsdk-pool-mms-win-2019-general
23+ - name : LinuxPool
24+ type : string
25+ default : azsdk-pool-mms-ubuntu-1804-general
26+
127jobs :
228 - job : Build
329 variables :
430 - template : ../variables/globals.yml
531 pool :
6- name : azsdk-pool-mms-win-2019-general # Comment this line back-out to switch to public pools.
32+ name : ${{ parameters.WindowsPool }} # Comment this line back-out to switch to public pools.
733 # vmImage: windows-2019 # Comment this line back-in to switch to public pools.
834 steps :
935 - ${{if eq(parameters.TestPipeline, 'true')}} :
6995 variables :
7096 - template : ../variables/globals.yml
7197 pool :
72- vmImage : ubuntu-18.04
98+ name : ${{ parameters.LinuxPool }}
99+ vmImage :
73100 steps :
74101 - task : UsePythonVersion@0
75102 displayName : " Use Python 3.6"
@@ -124,25 +151,25 @@ jobs:
124151 maxParallel : $[ variables['MaxParallelTestJobs'] ]
125152 matrix :
126153 Linux :
127- Pool : # Intentionally blank .
128- OSVmImage : " ubuntu-18.04"
154+ Pool : ${{ parameters.LinuxPool }} # Comment out to swap back to public hosted pool .
155+ OSVmImage : # "ubuntu-18.04" # Comment back in to swap back to public hosted pool.
129156 TestTargetFramework : netcoreapp2.1
130157 Windows_NetCoreApp :
131- Pool : azsdk-pool-mms-win-2019-general # Comment out to swap back to public hosted pool.
158+ Pool : ${{ parameters.WindowsPool }} # Comment out to swap back to public hosted pool.
132159 OSVmImage : # "windows-2019" # Comment back in to swap back to public hosted pool.
133160 TestTargetFramework : netcoreapp2.1
134161 CollectCoverage : true
135162 Windows_NetCoreApp_ProjectReferences :
136- Pool : azsdk-pool-mms-win-2019-general # Comment out to swap back to public hosted pool.
163+ Pool : ${{ parameters.WindowsPool }} # Comment out to swap back to public hosted pool.
137164 OSVmImage : # "windows-2019" # Comment back in to swap back to public hosted pool.
138165 TestTargetFramework : netcoreapp2.1
139166 ConvertToProjectReferenceOption : /p:UseProjectReferenceToAzureClients=true
140167 Windows_NetFramework :
141- Pool : azsdk-pool-mms-win-2019-general # Comment out to swap back to public hosted pool.
168+ Pool : ${{ parameters.WindowsPool }} # Comment out to swap back to public hosted pool.
142169 OSVmImage : # "windows-2019" # Comment back in to swap back to public hosted pool.
143170 TestTargetFramework : net461
144171 Windows_NetFramework_ProjectReferences :
145- Pool : azsdk-pool-mms-win-2019-general # Comment out to swap back to public hosted pool.
172+ Pool : ${{ parameters.WindowsPool }} # Comment out to swap back to public hosted pool.
146173 OSVmImage : # "windows-2019" # Comment back in to swap back to public hosted pool.
147174 TestTargetFramework : net461
148175 ConvertToProjectReferenceOption : /p:UseProjectReferenceToAzureClients=true
@@ -151,7 +178,7 @@ jobs:
151178 OSVmImage : " macOS-10.15"
152179 TestTargetFramework : netcoreapp2.1
153180 Windows_Net50 :
154- Pool : azsdk-pool-mms-win-2019-general # Comment out to swap back to public hosted pool.
181+ Pool : ${{ parameters.WindowsPool }} # Comment out to swap back to public hosted pool.
155182 OSVmImage : # "windows-2019" # Comment back in to swap back to public hosted pool.
156183 TestTargetFramework : net5.0
157184 pool :
0 commit comments