Skip to content

Commit e95f53c

Browse files
committed
Gate Azure SQL matrix on pipeline parameter
1 parent 477e047 commit e95f53c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

eng/pipelines/pr-validation-pipeline.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ trigger:
66
include:
77
- main
88

9+
parameters:
10+
- name: enableAzureSQL
11+
displayName: 'Enable Azure SQL Database testing'
12+
type: boolean
13+
default: false
14+
915
jobs:
1016
- job: CodeQLAnalysis
1117
displayName: 'CodeQL Security Analysis'
@@ -70,7 +76,7 @@ jobs:
7076
LocalDB_Python314:
7177
sqlVersion: 'LocalDB'
7278
pythonVersion: '3.14'
73-
${{ if eq(variables['ENABLE_AZURE_SQL'], 'true') }}:
79+
${{ if eq(parameters.enableAzureSQL, true) }}:
7480
AzureSQL:
7581
sqlVersion: 'AzureSQL'
7682
pythonVersion: '3.13'
@@ -466,7 +472,7 @@ jobs:
466472
sqlServerImage: 'mcr.microsoft.com/mssql/server:2025-latest'
467473
sqlVersion: 'SQL2025'
468474
useAzureSQL: 'false'
469-
${{ if eq(variables['ENABLE_AZURE_SQL'], 'true') }}:
475+
${{ if eq(parameters.enableAzureSQL, true) }}:
470476
AzureSQL:
471477
sqlServerImage: ''
472478
sqlVersion: 'AzureSQL'
@@ -578,7 +584,7 @@ jobs:
578584
distroName: 'Ubuntu-SQL2025'
579585
sqlServerImage: 'mcr.microsoft.com/mssql/server:2025-latest'
580586
useAzureSQL: 'false'
581-
${{ if eq(variables['ENABLE_AZURE_SQL'], 'true') }}:
587+
${{ if eq(parameters.enableAzureSQL, true) }}:
582588
Ubuntu_AzureSQL:
583589
dockerImage: 'ubuntu:22.04'
584590
distroName: 'Ubuntu-AzureSQL'

0 commit comments

Comments
 (0)